[ 
https://issues.apache.org/jira/browse/LUCENE-4992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13655463#comment-13655463
 ] 

John Wang commented on LUCENE-4992:
-----------------------------------

Thanks Rob for the patch!
This makes the api much safer.

I am inclined to think option 2) above with the NO_MORE_DOCS check is a still 
good thing to do for BooleanScorer2 (unrelated to CustomScoreQuery).

What do you think?

=John
                
> ArrayOutOfBoundsException in BooleanScorer2
> -------------------------------------------
>
>                 Key: LUCENE-4992
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4992
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/search
>    Affects Versions: 4.1
>            Reporter: John Wang
>         Attachments: LUCENE-4992.patch, patch.diff
>
>
> Seeing following exception in BooleanScorer2 in our production system:
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 
> 2147483647
>       at 
> org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:312)
>       at 
> org.apache.lucene.queries.CustomScoreQuery$CustomScorer.score(CustomScoreQuery.java:324)
>       at 
> org.apache.lucene.search.DisjunctionMaxScorer.score(DisjunctionMaxScorer.java:84)
>       at 
> org.apache.lucene.search.TopScoreDocCollector$InOrderTopScoreDocCollector.collect(TopScoreDocCollector.java:47)
>       at org.apache.lucene.search.Scorer.score(Scorer.java:64)
>       at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:605)
>       at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:482)
>       at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:438)
>       at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:281)
>       at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:269)
>       

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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