[
https://issues.apache.org/jira/browse/LUCENE-6373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14494299#comment-14494299
]
Robert Muir commented on LUCENE-6373:
-------------------------------------
OK i found the bug. sneaky one. in DISIWrapper this is my fix:
{code}
public int lastApproxMatchDoc = -2; // last doc of approximation that did
match
public int lastApproxNonMatchDoc = -2; // last doc of approximation that did
not match
{code}
Previously only one of these was initialized, the other was initialized to
zero. So this could cause problems for docid 0.
> Complete two phase doc id iteration support for Spans
> -----------------------------------------------------
>
> Key: LUCENE-6373
> URL: https://issues.apache.org/jira/browse/LUCENE-6373
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Paul Elschot
> Attachments: LUCENE-6373-SpanOr.patch,
> LUCENE-6737-SpanOr-oneTestFails.patch
>
>
> Spin off from LUCENE-6308, see comments there from about 23 March 2015.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]