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

5x: backport ClassicSimilarity, mark DefaultSimilarity deprecated & update javadocs to mention ClassicSim vs. BM25Sim

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      LUCENE-6789 changed the default Similarity on trunk to BM25, and renamed DefaultSimiliarity to ClassicSimilarity for backcompat w/o confusion about the "default" name.

      But nothing related to this change was committed to the 5x branch.

      On the 5x branch we should:

      • mark DefaultSimiliarity deprecated
      • provide a ClassicSimilarity for 5.x users to switch to to resolve deprecations w/o changing behavior (and allow smooth upgrade to 6.x later)
      • note in the DefaultSimiliarity javadocs that starting with 6.0 BM25 will be the recommended default and users should investigate it

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: