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

Alan Woodward commented on LUCENE-8300:
---------------------------------------

Here's an updated patch.  {{Intervals.unordered}} now takes a boolean 
(defaulting to {{true}}) that says whether or not to allow overlaps.

[~jim.ferenczi] I think there's already a test that does what you ask?  
Checking for {{porridge}} unordered with {{pease porridge hot}}

> Add unordered-distinct IntervalsSource
> --------------------------------------
>
>                 Key: LUCENE-8300
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8300
>             Project: Lucene - Core
>          Issue Type: New Feature
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>            Priority: Major
>         Attachments: LUCENE-8300.patch, LUCENE-8300.patch
>
>
> [~mattweber] pointed out on LUCENE-8196 that {{Intervals.unordered()}} 
> doesn't check to see if its subintervals overlap, which means that for 
> example {{Intervals.unordered(Intervals.term("a"), Intervals.term("a"))}} 
> would match a document with {{a}} appearing only once.  This ticket will 
> introduce a new function, {{Intervals.unordered_distinct()}}, that ensures 
> that all subintervals within an unordered interval do not overlap.



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

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

Reply via email to