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

Change default Sim to BM25 (w/backcompat config handling)

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 6.0
    • None
    • None

    Description

      LUCENE-6789 changed the default similarity for IndexSearcher to BM25 and renamed "DefaultSimilarity" to "ClassicSimilarity"

      Solr needs to be updated accordingly:

      • a "ClassicSimilarityFactory" should exist w/expected behavior/javadocs
      • default behavior (in 6.0) when no similarity is specified in configs should (ultimately) use BM25 depending on luceneMatchVersion
        • either by assuming BM25SimilarityFactory or by changing the internal behavior of DefaultSimilarityFactory
      • comments in sample configs need updated to reflect new default behavior
      • ref guide needs updated anywhere it mentions/implies that a particular similarity is used (or implies TF-IDF is used by default)

      Attachments

        1. SOLR-8057.patch
          9 kB
          Chris M. Hostetter
        2. SOLR-8057.patch
          46 kB
          Chris M. Hostetter

        Issue Links

        There are no Sub-Tasks for this issue.

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hossman Chris M. Hostetter
            hossman Chris M. Hostetter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment