[
https://issues.apache.org/jira/browse/LUCENE-4992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13653074#comment-13653074
]
John Wang commented on LUCENE-4992:
-----------------------------------
in DisjunctionSumScorer, line 96:
private void afterNext() throws IOException {
final Scorer sub = subScorers[0];
doc = sub.docID();
if (doc == NO_MORE_DOCS)
{ nrMatchers = Integer.MAX_VALUE; // stop looping <--- this is set }
else
{ score = sub.score(); nrMatchers = 1; countMatches(1); countMatches(2); }
}
and in BooleanScorer2, line 167:
coordinator.nrMatchers += super.nrMatchers;
and then it breaks on line 312.
Attached is a patch.
> 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
>
> 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]