lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "paul.elschot (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-413) [PATCH] BooleanScorer2 ArrayIndexOutOfBoundsException + alternative NearSpans
Date Fri, 31 Mar 2006 07:16:41 GMT
    [ http://issues.apache.org/jira/browse/LUCENE-413?page=comments#action_12372642 ] 

paul.elschot commented on LUCENE-413:
-------------------------------------

Dallan, could you try this patch: DisjunctionSumScorerPatch5.txt ?

An index at MAX_INT in SpanScorer.score() is an indication that the
underlying spans returned MAX_INT from spans.doc(), which should mean
that spans.doc() was called after spans.next() or spans.skipTo(...) returned
false.
That means that either SpanScorer.java is incorrect, or that the Spans used
by it is incorrect, or that SpanScorer is used incorrectly, eg. by having score()
called on it after next() or skipTo(...) returned false.


> [PATCH] BooleanScorer2 ArrayIndexOutOfBoundsException + alternative NearSpans
> -----------------------------------------------------------------------------
>
>          Key: LUCENE-413
>          URL: http://issues.apache.org/jira/browse/LUCENE-413
>      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, NearSpansOrdered.java, NearSpansOrderedBugHuntPatch1.txt,
NearSpansUnordered.java, SpanNearQueryPatch1.txt, SpanScorerTestPatch1.txt
>
> From Erik's post at java-dev: 
>  
> >      [java] Caused by: java.lang.ArrayIndexOutOfBoundsException: 4 
> >      [java]     at org.apache.lucene.search.BooleanScorer2  
> > $Coordinator.coordFactor(BooleanScorer2.java:54) 
> >      [java]     at org.apache.lucene.search.BooleanScorer2.score  
> > (BooleanScorer2.java:292) 
> ... 
>  
> 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message