mirror of https://github.com/apache/lucene.git
LUCENE-8890: Fix compilation.
This commit is contained in:
parent
b8ce50c4c1
commit
a8fef9a94f
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue