public static class LMSimilarity.LMStats extends BasicStats
avgFieldLength, boost, docFreq, numberOfDocuments, numberOfFieldTokens, totalTermFreq
Constructor and Description |
---|
LMStats(String field,
float boost)
Creates LMStats for the provided field and query-time boost
|
Modifier and Type | Method and 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.
|
getAvgFieldLength, getBoost, getDocFreq, getNumberOfDocuments, getNumberOfFieldTokens, getTotalTermFreq, setAvgFieldLength, setDocFreq, setNumberOfDocuments, setNumberOfFieldTokens, setTotalTermFreq
public LMStats(String field, float boost)
public final float getCollectionProbability()
public final void setCollectionProbability(float collectionProbability)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.