Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-10553

WANDScorer's handling of 0 and +Infty is backwards

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.2
    • 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

          Activity

            People

              Unassigned Unassigned
              jpountz Adrien Grand
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h