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

DisjunctionMaxScorer Initializes scoreMax to Zero Preventing From Using Negative Scores

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.5.2
    • 6.3, 7.0
    • core/search
    • None
    • New

    Description

      We are using a log of probability for scoring, which gives us negative scores.

      DisjunctionMaxScorer initializes scoreMax in the score(...) function to zero preventing us from using negative scores. Is there a reason it couldn't be initialized to something like this:

      float scoreMax = Float.MAX_VALUE * -1;

      Attachments

        1. LUCENE-7486.patch
          0.8 kB
          Uwe Schindler
        2. LUCENE-7486.patch
          2 kB
          Uwe Schindler

        Activity

          People

            uschindler Uwe Schindler
            iprovalo Ivan Provalov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: