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

Add boosting support in the SynonymQuery

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 8.1, 9.0
    • None
    • None
    • New

    Description

      The SynonymQuery tries to score multiple terms as if you had indexed them as one term.
      This is good for "true" synonyms where each term should have the same contribution to the final score but this doesn't handle the case where terms have different weights. For scoring purpose it would be nice to be able to assign a boost per term that we could multiply with the term's document frequency in order to take into account the importance of the term within the synonym list.

      Attachments

        1. LUCENE-8652.patch
          45 kB
          Jim Ferenczi
        2. LUCENE-8652.patch
          42 kB
          Jim Ferenczi

        Activity

          People

            Unassigned Unassigned
            jim.ferenczi Jim Ferenczi
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: