dweiss commented on a change in pull request #2127:
URL: https://github.com/apache/lucene-solr/pull/2127#discussion_r538313908



##########
File path: 
lucene/highlighter/src/test/org/apache/lucene/search/matchhighlight/TestMatchRegionRetriever.java
##########
@@ -361,6 +374,41 @@ public void testIntervalQueries() throws IOException {
     );
   }
 
+  @Test
+  public void testDegenerateIntervalsWithPositions() throws IOException {
+    testDegenerateIntervals(FLD_TEXT_POS);
+  }
+
+  @Test @AwaitsFix(bugUrl = 
"https://issues.apache.org/jira/browse/LUCENE-9634: " +

Review comment:
       It is extremely useful to capture and drill down in the context of 
another query. Let's say apples nearby oranges. Yes, you can achieve a similar 
thing with other queries but it's pretty useful on its own (because you can 
first inspect the context you're looking at by running the extends query in 
isolation).
   
   I've modified flexible query parser and added those functions as 
prefix-scoped "language". Looks like this:
   https://get.carrotsearch.com/lingo4g/1.12.0-SNAPSHOT/doc/#interval-functions
   
   And combine with the matches highlighter it really shines. It's the best 
when you get multiple overlapping intervals; I don't have an example won this 
computer (I have a day of on home duties) but I can send you one later on - you 
can do some really impressive stuff with intervals!




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