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

Deprecate SimilarityDelegator and Similarity.lengthNorm

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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.patch
          63 kB
          Michael McCandless
        2. LUCENE-2854_fuzzylikethis.patch
          3 kB
          Robert Muir

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: