pike.git / lib / modules / Search.pmod / Query.pmod

version» Context lines:

pike.git/lib/modules/Search.pmod/Query.pmod:286:    if (!fieldID && q->field != "body")    {    // There was no such field, so we push an empty ResultSet !    push(Search.ResultSet());    break;    }    ranking->field_ranking = allocate(65);    ranking->field_ranking[fieldID] = 1;    }    +  // Note that words can become globs automatically if auto-globbing +  // is enabled. If true then this has already happened in the +  // parsing step so we don't need to do anything here. +     [array plusWords, array plusWordGlobs] = split_words(q->plusWords);    [array ordinaryWords, array ordinaryWordGlobs] = split_words(q->words);    [array minusWords, array minusWordGlobs] = split_words(q->minusWords);         // werror("[%-10s] plus: %-15s ordinary: %-15s minus: %-15s\n", q->field, q>plusWords*", ", q->words*", ", q->minusWords*", ");       // Subtracting "*" gives empty result    if (has_value(minusWordGlobs, "*")) {    push(Search.ResultSet());