[
https://issues.apache.org/jira/browse/LUCENE-4992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13654837#comment-13654837
]
Robert Muir commented on LUCENE-4992:
-------------------------------------
Another nice thing about the last approach (actually, you can do it today to
fix your bug), is that you can always pass an arbitrary query anyway:
new FunctionQuery(new QueryValueSource(MyBooleanQueryOrWhatever, 5.0f))
The QueryValueSource has that additional argument that lets you specify what
the score (in this example: 5.0f) should be for documents that don't match, so
it removes any ambiguity.
> 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: 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]