Class LMJelinekMercerSimilarityFactory
- java.lang.Object
-
- org.apache.solr.schema.SimilarityFactory
-
- org.apache.solr.search.similarities.LMJelinekMercerSimilarityFactory
-
public class LMJelinekMercerSimilarityFactory extends SimilarityFactory
Factory forLMJelinekMercerSimilarity
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.
- parameter lambda (float): smoothing parameter λ. The default is
-
-
Field Summary
-
Fields inherited from class org.apache.solr.schema.SimilarityFactory
CLASS_NAME, params
-
-
Constructor Summary
Constructors Constructor Description LMJelinekMercerSimilarityFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.search.similarities.Similarity
getSimilarity()
void
init(org.apache.solr.common.params.SolrParams params)
-
Methods inherited from class org.apache.solr.schema.SimilarityFactory
getClassArg, getNamedPropertyValues, getParams
-
-
-
-
Method Detail
-
init
public void init(org.apache.solr.common.params.SolrParams params)
- Overrides:
init
in classSimilarityFactory
-
getSimilarity
public org.apache.lucene.search.similarities.Similarity getSimilarity()
- Specified by:
getSimilarity
in classSimilarityFactory
-
-