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

Should we require positive scores?

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Having worked on MAXSCORE recently, things would be simpler if we required that scores are positive. Practically, this would mean

      • forbidding/fixing similarities that may produce negative scores (we have some of them)
      • forbidding things like negative boosts

      So I'd be curious to have opinions whether this would be a sane requirement or whether we need to be able to cope with negative scores eg. because some similarities that we want to support produce negative scores by design.

        Attachments

        1. LUCENE-7996.patch
          16 kB
          Adrien Grand
        2. LUCENE-7996.patch
          31 kB
          Adrien Grand
        3. LUCENE-7996.patch
          35 kB
          Adrien Grand

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jpountz Adrien Grand
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: