org.apache.lucene.search.similarities

## Class DefaultSimilarity

- java.lang.Object
- - org.apache.lucene.search.similarities.Similarity
  - - org.apache.lucene.search.similarities.TFIDFSimilarity
    - - org.apache.lucene.search.similarities.ClassicSimilarity
      - - org.apache.lucene.search.similarities.DefaultSimilarity

- Deprecated.
  Use `ClassicSimilarity` for equivilent behavior, or consider switching to `BM25Similarity` which will become the new default in Lucene 6.0

      @Deprecated
      public class DefaultSimilarity
      extends ClassicSimilarity

  Expert: Default scoring implementation - see superclass `ClassicSimilarity` for implementation details.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.apache.lucene.search.similarities.Similarity

      `Similarity.SimScorer, Similarity.SimWeight`

  - ### Field Summary

    - ### Fields inherited from class org.apache.lucene.search.similarities.ClassicSimilarity

      `discountOverlaps`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultSimilarity()` Deprecated.

  - ### Method Summary

    - ### Methods inherited from class org.apache.lucene.search.similarities.ClassicSimilarity

      `coord, decodeNormValue, encodeNormValue, getDiscountOverlaps, idf, lengthNorm, queryNorm, scorePayload, setDiscountOverlaps, sloppyFreq, tf, toString`

    - ### Methods inherited from class org.apache.lucene.search.similarities.TFIDFSimilarity

      `computeNorm, computeWeight, idfExplain, idfExplain, simScorer`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultSimilarity

          public DefaultSimilarity()

      Deprecated.

Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.