jpountz commented on a change in pull request #2141:
URL: https://github.com/apache/lucene-solr/pull/2141#discussion_r546265505



##########
File path: lucene/core/src/java/org/apache/lucene/search/WANDScorer.java
##########
@@ -271,6 +280,19 @@ public boolean matches() throws IOException {
             return false;
           }
         }
+
+        // minCompetitiveScore satisfied, now checks if the doc has enough 
required number of matches
+        // Combining this loop with the above makes for complicated 
conditional checks, so keeping them separate for readability

Review comment:
       Actually I think it's important to merge both loops, in order to stop 
calling `advanceTail` as soon as possible.
   
   Without doing this, your change is still correct, but it doesn't leverage 
`minShouldMatch` in order to make the query run faster, which is a pity.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to