lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doron Cohen (JIRA)" <>
Subject [jira] Commented: (LUCENE-569) NearSpans skipTo bug
Date Fri, 27 Oct 2006 23:21:17 GMT
    [ ] 
Doron Cohen commented on LUCENE-569:

Chris Hostetter wrote:

> Really? ... the build.xml currently sets the javac -source and -target to
> 1.4 so if that were true i would except it to have failed, and the
> documentation for J2SE 1.4.2 indicates that assertion support exists in
> 1.4.
> while writting this i attempted an "ant clean test" using Java 1.4 and
> everything seemed to work fine.

You are right Chris, my mistake, compilation passed for me with 1.5 but failed with 1.4 so
I assumed this was the case, but apparently for 1.4 I had 1.3 for the source compatibility
(in Eclipse). I changed to 1.4 and it passed with no problems.

Sorry for this noise,

> NearSpans skipTo bug
> --------------------
>                 Key: LUCENE-569
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>            Reporter: Hoss Man
>         Assigned To: Hoss Man
>         Attachments: common-build.assertions.patch, LUCENE-569.ubber.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