You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alan Woodward (JIRA)" <ji...@apache.org> on 2018/12/03 15:49:01 UTC
[jira] [Commented] (LUCENE-8586) Logic error in Intervals.or() can
cause endless loop
[ https://issues.apache.org/jira/browse/LUCENE-8586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16707402#comment-16707402 ]
Alan Woodward commented on LUCENE-8586:
---------------------------------------
Patch with test and fix.
> Logic error in Intervals.or() can cause endless loop
> ----------------------------------------------------
>
> Key: LUCENE-8586
> URL: https://issues.apache.org/jira/browse/LUCENE-8586
> Project: Lucene - Core
> Issue Type: Task
> Reporter: Alan Woodward
> Assignee: Alan Woodward
> Priority: Major
> Attachments: LUCENE-8586.patch
>
>
> An intervals source of the following type:
> {code:java}
> IntervalsSource source = Intervals.ordered(
> Intervals.or(Intervals.term("term1"), Intervals.term("term2")),
> Intervals.term("term3")){code}
> can cause an infinite loop when queried, due to a bug in the 'no more intervals' logic in DisjunctionIntervalIterator
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org