lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "paul.elschot (JIRA)" <>
Subject [jira] Updated: (LUCENE-569) NearSpans skipTo bug
Date Sun, 03 Sep 2006 09:27:23 GMT
     [ ]

paul.elschot updated LUCENE-569:

    Attachment: NearSpans20060903.patch

NearSpans20060903.patch combines the changes for the bug fix on the
following files against revision 439747 (today):

src/java/org/apache/lucene/search/spans/, added
src/java/org/apache/lucene/search/spans/, added
src/java/org/apache/lucene/search/spans/, changed
src/test/org/apache/lucene/search/spans/, added
src/java/org/apache/lucene/search/spans/, deleted.

This obsoletes the patch to
(It leaves out one line of commented code that is  in the separate patch for

The added NearSpansUnordered is a simple specialisation of the deleted
NearSpans for the unordered case.

Paul Elschot

> NearSpans skipTo bug
> --------------------
>                 Key: LUCENE-569
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>            Reporter: Hoss Man
>         Attachments: common-build.assertions.patch, NearSpans20060903.patch,,, SpanNearQuery20060622.patch, SpanScorer.explain.testcase.patch,
> 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:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message