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

Deprecate SimilarityDelegator and Similarity.lengthNorm

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.1, 4.0-ALPHA
    • None
    • None
    • New

    Description

      SimilarityDelegator is a back compat trap (see LUCENE-2828).

      Apps should just [statically] subclass Sim or DefaultSim; if they really need "runtime subclassing" then they can make their own app-level delegator.

      Also, Sim.computeNorm subsumes lengthNorm, so we should deprecate lengthNorm in favor of computeNorm.

      Attachments

        1. LUCENE-2854_fuzzylikethis.patch
          3 kB
          Robert Muir
        2. LUCENE-2854.patch
          63 kB
          Michael McCandless

        Activity

          People

            Unassigned Unassigned
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: