Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13025

SchemaSimilarityFactory fallback to LegacyBM25Similarity

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 8.0
    • 8.0
    • search
    • None

    Description

      This is a follow-up of LUCENE-8563: Lucene changed its BM25Similarity implementation to no longer multiply all scores by (k1 + 1). Solr was left unchanged by replacing uses of BM25Similarity with LegacyBM25Similarity which returns the same scores as in 7.x.

      This Jira makes the default similarity depend on luceneMatchVersion for back-compat if schema either does not define a similarity of defines SchemaSimilarityFactory. If a user has explicitly defined BM25SimilarityFactory then the new will be used and she will need to replace with LegacyBM25SimilarityFactory if she wants to keep old absolute scores (most often not necessary).

      This change is also described in RefGuide and CHANGES.

      Attachments

        Issue Links

          Activity

            People

              janhoy Jan Høydahl
              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 - 20m
                  20m