Class LMSimilarity.LMStats
- java.lang.Object
-
- org.apache.lucene.search.similarities.Similarity.SimWeight
-
- org.apache.lucene.search.similarities.BasicStats
-
- org.apache.lucene.search.similarities.LMSimilarity.LMStats
-
- Enclosing class:
- LMSimilarity
public static class LMSimilarity.LMStats extends BasicStats
Stores the collection distribution of the current term.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getCollectionProbability()
Returns the probability that the current term is generated by the collection.void
setCollectionProbability(float collectionProbability)
Sets the probability that the current term is generated by the collection.-
Methods inherited from class org.apache.lucene.search.similarities.BasicStats
getAvgFieldLength, getDocFreq, getNumberOfDocuments, getNumberOfFieldTokens, getTotalBoost, getTotalTermFreq, getValueForNormalization, normalize, setAvgFieldLength, setDocFreq, setNumberOfDocuments, setNumberOfFieldTokens, setTotalTermFreq
-
-
-
-
Constructor Detail
-
LMStats
public LMStats(String field, float queryBoost)
Creates LMStats for the provided field and query-time boost
-
-
Method Detail
-
getCollectionProbability
public final float getCollectionProbability()
Returns the probability that the current term is generated by the collection.
-
setCollectionProbability
public final void setCollectionProbability(float collectionProbability)
Sets the probability that the current term is generated by the collection.
-
-