lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "paul.elschot (JIRA)" <>
Subject [jira] Updated: (LUCENE-413) [PATCH] BooleanScorer2 ArrayIndexOutOfBoundsException + alternative NearSpans
Date Sun, 02 Apr 2006 20:56:43 GMT
     [ ]

paul.elschot updated LUCENE-413:


I think I found a bug in

The problem is that SpanScorer.skipTo() and are not
designed to be used both in the same search.
As the doc of the scored Spans is normally ahead, the attached version of
SpanScorer adds a check in skipTo() for the scored spans not being ahead
of the target of skipTo().
The attached version of SpanScorer is also refactored to remove double code.

This new SpanScorer changes the behaviour of SpanQueries and it leaves
TestSpansAdvanced and TestSpansAdvanced2 failing. I attached a passing version for both of
these tests, but they still contain some System.out.println()'s,
and the test for the score value is changed to a warning. The same documents
still match in the tests, only some score values change.

I don't know whether DisjunctionSumScorerPatch5.txt is still needed, but it should not hurt.

I didn't change the copyright year in the sources, in case they make it
to the trunk, the year could be updated.

> [PATCH] BooleanScorer2 ArrayIndexOutOfBoundsException + alternative NearSpans
> -----------------------------------------------------------------------------
>          Key: LUCENE-413
>          URL:
>      Project: Lucene - Java
>         Type: Bug

>   Components: Search
>     Versions: CVS Nightly - Specify date in submission
>  Environment: Operating System: other
> Platform: Other
>     Reporter: paul.elschot
>     Assignee: Lucene Developers
>  Attachments: DisjunctionSumScorerPatch3.txt, DisjunctionSumScorerPatch4.txt, DisjunctionSumScorerPatch5.txt,
DisjunctionSumScorerTestPatch1.txt,, NearSpansOrderedBugHuntPatch1.txt,, SpanNearQueryPatch1.txt,, SpanScorerTestPatch1.txt,,
> From Erik's post at java-dev: 
> >      [java] Caused by: java.lang.ArrayIndexOutOfBoundsException: 4 
> >      [java]     at  
> > $Coordinator.coordFactor( 
> >      [java]     at  
> > ( 
> ... 
> and my answer: 
> Probably nrMatchers is increased too often in score() by calling score() 
> more than once.

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