lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "paul.elschot (JIRA)" <>
Subject [jira] Commented: (LUCENE-569) NearSpans skipTo bug
Date Sat, 13 May 2006 08:53:09 GMT
    [ ] 

paul.elschot commented on LUCENE-569:


There is an alternative NearSpans here:
in the files:

It would be good to see whether these have the same skipTo bug.
I'll have a look into this in a few days, please feel free to beat me to it.

Anyway, thanks for the courage to review all of Lucene's use of Explanation.
Explaining a score value is just as involved as the normal search mechanisms,
as it is necessary to redo the whole search, but only for a single document,
and then literally explain all the details in program code.

> NearSpans skipTo bug
> --------------------
>          Key: LUCENE-569
>          URL:
>      Project: Lucene - Java
>         Type: Bug

>   Components: Search
>     Reporter: Hoss Man
>  Attachments:
> 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