Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8057 Change default Sim to BM25 (w/backcompat config handling)
  3. SOLR-8239

Deprecate/rename DefaultSimilarityFactory to ClassicSimilarityFactory and remove DefaultSimilarityFactory in trunk

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      As outlined in parent issue...

      • clone DefaultSimilarityFactory -> ClassicSimilarityFactory
      • prune DefaultSimilarityFactory down to a trivial subclass of ClassicSimilarityFactory
        • make it log a warning on init
      • change default behavior of IndexSchema to use ClassicSimilarityFactory directly
      • mark DefaultSimilarityFactory as deprecated in 5.x, remove from trunk/6.0

      This should put us in a better position moving forward of having the facotry names directly map to the underlying implementation, leaving less ambiguity when an explicit factory is specified in the schema.xml (either as the main similarity, or as a per field similarity)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hossman Hoss Man
                Reporter:
                hossman Hoss Man
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: