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

ASF subversion and git services commented on LUCENE-10553:
----------------------------------------------------------

Commit efa5d6f4d4354ae87a1e6144dc70aeb52b98bfd2 in lucene's branch 
refs/heads/branch_9x from Adrien Grand
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=efa5d6f4d43 ]

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]

Reply via email to