Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
New
Description
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.
Attachments
Issue Links
- links to