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

BlendedInfixSuggester incorrectly scores items with high and low weights

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 8.10
    • None
    • core/search
    • None
    • New

    Description

      After fix LUCENE-8343 BlendedInfixSuggester applies additional 1 / LINEAR_COEF coefficient for the weight that falls to (-10, 10) range. Where LINEAR_COEF = 0.1

      Link to the changes: Code

      Whilst it fixes zero score issues, it causes incorrect scoring between item with weight < 10 and item with weight > 10.

      Example:

      Blender - POSITION_RECIPROCAL (weight / (1 + position))

      Item Weight Score
      AAA 8 8 * (1 / 0.1) * (1 / (1 + 0)) =  80
      AAB 11 11 * (1 / (1 + 0)) = 11

      So item AAA with lower weight bubbled up, but in fact, AAA must be on the bottom.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              a.popitich Aleksandr Popitich
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: