zhaih commented on a change in pull request #521:
URL: https://github.com/apache/lucene/pull/521#discussion_r763577418



##########
File path: 
lucene/queries/src/java/org/apache/lucene/queries/intervals/MinimumShouldMatchIntervalsSource.java
##########
@@ -215,6 +215,7 @@ public int gaps() {
 
     @Override
     public int nextInterval() throws IOException {
+      lead = null;

Review comment:
       This is necessary, since if we returned on L243, the lead will remain to 
be the lead of the previous interval. This fixes this case:
   ```
   {
           "fn:atLeast(2 fn:unordered(furry dog) fn:unordered(brown dog) lazy 
quick)",
           "0. %s: The >quick >brown fox jumps over the lazy<<> dog<"
   }
   ```




-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

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