Class LMJelinekMercerSimilarityFactory


  • public class LMJelinekMercerSimilarityFactory
    extends SimilarityFactory
    Factory for LMJelinekMercerSimilarity

    Parameters:

    • parameter lambda (float): smoothing parameter λ. The default is 0.7

    Optional settings:

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

      • LMJelinekMercerSimilarityFactory

        public LMJelinekMercerSimilarityFactory()
    • Method Detail

      • init

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