LUCENE-8890: Fix compilation.

This commit is contained in:
Adrien Grand 2019-06-28 10:10:56 +02:00
parent b8ce50c4c1
commit a8fef9a94f
1 changed files with 3 additions and 5 deletions

View File

@ -67,12 +67,10 @@ final class BooleanWeight extends Weight {
@Override
public void extractTerms(Set<Term> terms) {
int i = 0;
for (BooleanClause clause : query) {
if (clause.isScoring() || (scoreMode.needsScores() == false && clause.isProhibited() == false)) {
weights.get(i).extractTerms(terms);
for (WeightedBooleanClause wc : weightedClauses) {
if (wc.clause.isScoring() || (scoreMode.needsScores() == false && wc.clause.isProhibited() == false)) {
wc.weight.extractTerms(terms);
}
i++;
}
}