Class LMSimilarity.LMStats
java.lang.Object
org.apache.lucene.search.similarities.BasicStats
org.apache.lucene.search.similarities.LMSimilarity.LMStats
- Enclosing class:
- LMSimilarity
Stores the collection distribution of the current term.
-
Field Summary
Fields inherited from class org.apache.lucene.search.similarities.BasicStats
avgFieldLength, boost, docFreq, numberOfDocuments, numberOfFieldTokens, totalTermFreq
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal double
Returns the probability that the current term is generated by the collection.final void
setCollectionProbability
(double collectionProbability) Sets the probability that the current term is generated by the collection.Methods inherited from class org.apache.lucene.search.similarities.BasicStats
getAvgFieldLength, getBoost, getDocFreq, getNumberOfDocuments, getNumberOfFieldTokens, getTotalTermFreq, setAvgFieldLength, setDocFreq, setNumberOfDocuments, setNumberOfFieldTokens, setTotalTermFreq
-
Constructor Details
-
LMStats
Creates LMStats for the provided field and query-time boost
-
-
Method Details
-
getCollectionProbability
public final double getCollectionProbability()Returns the probability that the current term is generated by the collection. -
setCollectionProbability
public final void setCollectionProbability(double collectionProbability) Sets the probability that the current term is generated by the collection.
-