[ http://issues.apache.org/jira/browse/LUCENE-569?page=comments#action_12383381 ]
paul.elschot commented on LUCENE-569: ------------------------------------- Fwiw, TestNearSpans passes on my working copy that has the alternative NearSpans. It's still worthwhile to try locate the bug in the current NearSpans. The last skipTo bug in DisjunctionSumScorer was caused by me not understanding that skipTo() always advances at least one document, even when the given target is at or before the current document of the Scorer on which skipTo is called. I would not be surprised if this turns out to be a similar problem. > NearSpans skipTo bug > -------------------- > > Key: LUCENE-569 > URL: http://issues.apache.org/jira/browse/LUCENE-569 > Project: Lucene - Java > Type: Bug > Components: Search > Reporter: Hoss Man > Attachments: TestNearSpans.java > > NearSpans appears to have a bug in skipTo that causes it to skip over some > matching documents completely. I discovered this bug while investigating > problems with SpanWeight.explain, but as far as I can tell the Bug is not > specific to Explanations ... it seems like it could potentially result in > incorrect matching in some situations where a SpanNearQuery is nested in > another query such thatskipTo will be used ... I tried to create a high level > test case to exploit the bug when searching, but i could not. TestCase > exploiting the class using NearSpan and SpanScorer will follow... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]