[
https://issues.apache.org/jira/browse/LUCENE-10553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17532157#comment-17532157
]
ASF subversion and git services commented on LUCENE-10553:
----------------------------------------------------------
Commit 26301898b20e30f484d653ab6415d460d011b099 in lucene's branch
refs/heads/main from Adrien Grand
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=26301898b20 ]
LUCENE-10553: Fix WANDScorer's handling of 0 and +Infty. (#860)
The computation of the scaling factor has special cases for these two values,
but the current logic is backwards.
> WANDScorer's handling of 0 and +Infty is backwards
> --------------------------------------------------
>
> Key: LUCENE-10553
> URL: https://issues.apache.org/jira/browse/LUCENE-10553
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Adrien Grand
> Priority: Minor
> Time Spent: 1h
> Remaining Estimate: 0h
>
> WANDScorer has special logic to deal with corner cases when the sum of the
> maximum scores of sub queries is either 0 or +Infty, but both code and tests
> have backwards logic regarding this special case, doing +1 instead of -1 and
> vice-versa.
> This leads to a failed assertion in the case when the sum of the scores of
> the sub queries overflows, which typically happens if one of the clauses has
> a default implementation that returns MAX_VALUE if it cannot reason about max
> scores.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]