[ 
http://issues.apache.org/jira/browse/LUCENE-413?page=comments#action_12372536 ] 

Dallan Quass commented on LUCENE-413:
-------------------------------------

I'm seeing this issue as well, but very rarely.  It happens when 
DisjunctionSumScorer.advanceAfterCurrent comes out of the do..while loop with 
nrMatchers == nrScorers+1.  This doesn't happens until about the 85'th document 
that gets scored for a particular query.  I added a hack to set nrMatchers = 
nrScorers in this case, which fixed the problem for me, but I'd be happy to 
help you track down the issue since I have a particular database and query that 
seems to elicit it.  Is there something you'd like me to do?  (I see the same 
problem on 1_9_final and 1_9_1.)


> [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to