[ 
https://issues.apache.org/jira/browse/LUCENE-8597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16722459#comment-16722459
 ] 

ASF subversion and git services commented on LUCENE-8597:
---------------------------------------------------------

Commit dae3e304a17502e85cea5d10166aed20ac99c078 in lucene-solr's branch 
refs/heads/master from [~romseygeek]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=dae3e30 ]

LUCENE-8597: TestIntervals.assertGaps() needs to take docBase into account


> Allow filtering of Intervals by their internal gaps
> ---------------------------------------------------
>
>                 Key: LUCENE-8597
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8597
>             Project: Lucene - Core
>          Issue Type: Task
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>            Priority: Major
>             Fix For: master (8.0)
>
>         Attachments: LUCENE-8597.patch
>
>
> We currently allow filtering of intervals by their total size, via the 
> `Intervals.maxwidth` static method.  This works well enough, but there are 
> several cases where you might want to restrict the gap between two intervals, 
> but don't necessarily know the total width.  For example, if you want to know 
> that an unordered pair `term1 term2` with no width restriction is less than 
> two positions away from another term: there is no current way to construct an 
> interval query that would return this.
> To enable this, I propose adding a `gaps()` method to IntervalIterator, which 
> returns the number of internal gaps between the iterators constituent 
> sub-iterators.  Terms and phrases, would return 0, and ordered/unordered 
> combinations would return the number of positions separating their immediate 
> children.  Note that this does not include the gaps within any of those 
> children themselves.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to