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



##########
File path: 
lucene/queries/src/java/org/apache/lucene/queries/intervals/Intervals.java
##########
@@ -275,7 +275,10 @@ public static IntervalsSource ordered(IntervalsSource... 
subSources) {
   }
 
   /**
-   * Create an unordered {@link IntervalsSource}
+   * Create an unordered {@link IntervalsSource}. Note that if there are 
multiple intervals ends at

Review comment:
       I was surprised by this behavior, and maybe it will lead to some wrong 
result? Like if we have a query
   ```
   overlapping(unordered("a","b"),unordered("c","d"))
   ```
   and a doc
   ```
   c a b c d
   ```
   I think normally people would expect a match for the bigger "c...d" and "a 
b" in the middle? But in our implementation it won't give any match...




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