lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <paul.elsc...@xs4all.nl>
Subject Re: BooleanScorer2 ArrayIndexOutOfBoundsException
Date Thu, 21 Jul 2005 17:59:11 GMT
On Wednesday 20 July 2005 17:53, Erik Hatcher wrote:
> I've seen this issue appear before, but I don't recall seeing if a  
> solution was posted.  Using a sophisticated query with nested  
> SpanQuery's the following exception occurred (using a recent  
> Subversion HEAD version).  Anyone have ideas on what caused it and  
> what may fix it?

Probably nrMatchers is increased too often in score() by calling score()
more than once.
I'm trying to fix this by increasing nrMatchers when next() and skipTo()
return true, instead of when score() is called. This happens in two or three
places, so don't hold your breath...

Regards,
Paul Elschot

> 
> >      [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)
> >      [java]     at org.apache.lucene.search.ConjunctionScorer.score 
> > (ConjunctionScorer.java:82)
> >      [java]     at org.apache.lucene.search.BooleanScorer2$2.score 
> > (BooleanScorer2.java:148)
> >      [java]     at org.apache.lucene.search.BooleanScorer2.score 
> > (BooleanScorer2.java:291)
> >      [java]     at org.apache.lucene.search.BooleanScorer2.score 
> > (BooleanScorer2.java:255)
> >      [java]     at org.apache.lucene.search.IndexSearcher.search 
> > (IndexSearcher.java:102)
> >      [java]     at org.apache.lucene.search.Hits.getMoreDocs 
> > (Hits.java:65)
> >      [java]     at org.apache.lucene.search.Hits.<init>(Hits.java:44)
> >      [java]     at org.apache.lucene.search.Searcher.search 
> > (Searcher.java:40)
> >      [java]     at org.apache.lucene.search.Searcher.search 
> > (Searcher.java:32)
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
> 
> 
> 


---------------------------------------------------------------------
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