Class ClassicSimilarityFactory

  • Direct Known Subclasses:

    public class ClassicSimilarityFactory
    extends SimilarityFactory
    Factory for ClassicSimilarity

    ClassicSimilarity is Lucene's original scoring implementation, based upon the Vector Space Model.

    Optional settings:

    • discountOverlaps (bool): Sets TFIDFSimilarity.setDiscountOverlaps(boolean)
    See Also:
    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Field Detail


        public static final String DISCOUNT_OVERLAPS
        Init param name for specifying the value to use in TFIDFSimilarity.setDiscountOverlaps(boolean)
        See Also:
        Constant Field Values
      • discountOverlaps

        protected boolean discountOverlaps
        Controls the value of TFIDFSimilarity.setDiscountOverlaps(boolean) on newly constructed instances of ClassicSimilarity
    • Constructor Detail

      • ClassicSimilarityFactory

        public ClassicSimilarityFactory()
    • Method Detail

      • init

        public void init​(org.apache.solr.common.params.SolrParams params)
        init in class SimilarityFactory