You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2019/06/28 08:11:15 UTC

[lucene-solr] branch branch_8x updated: LUCENE-8890: Fix compilation.

This is an automated email from the ASF dual-hosted git repository.

jpountz pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/branch_8x by this push:
     new a8fef9a  LUCENE-8890: Fix compilation.
a8fef9a is described below

commit a8fef9a94f04634d3c753faf0caea40ac844a8b6
Author: Adrien Grand <jp...@gmail.com>
AuthorDate: Fri Jun 28 10:10:56 2019 +0200

    LUCENE-8890: Fix compilation.
---
 lucene/core/src/java/org/apache/lucene/search/BooleanWeight.java | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/lucene/core/src/java/org/apache/lucene/search/BooleanWeight.java b/lucene/core/src/java/org/apache/lucene/search/BooleanWeight.java
index be15470..58a8bf5 100644
--- a/lucene/core/src/java/org/apache/lucene/search/BooleanWeight.java
+++ b/lucene/core/src/java/org/apache/lucene/search/BooleanWeight.java
@@ -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++;
     }
   }