Class BasicStats
Stores all statistics commonly used ranking methods.
@lucene.experimental
Assembly: DistributedLucene.Net.dll
Syntax
public class BasicStats : Similarity.SimWeight
Constructors
Name | Description |
---|---|
BasicStats(String, Single) | Constructor. Sets the query boost. |
Fields
Name | Description |
---|---|
m_avgFieldLength | The average field length. |
m_docFreq | The document frequency. |
m_numberOfDocuments | The number of documents. |
m_numberOfFieldTokens | The total number of tokens in the field. |
m_queryBoost | Query's inner boost. |
m_topLevelBoost | Any outer query's boost. |
m_totalBoost | For most Similarities, the immediate and the top level query boosts are not handled differently. Hence, this field is just the product of the other two. |
m_totalTermFreq | The total number of occurrences of this term across all documents. |
Properties
Name | Description |
---|---|
AvgFieldLength | Returns the average field length. |
DocFreq | Returns the document frequency. |
Field | The field. |
NumberOfDocuments | Gets or Sets the number of documents. |
NumberOfFieldTokens | Returns the total number of tokens in the field. |
TotalBoost | Returns the total boost. |
TotalTermFreq | Returns the total number of occurrences of this term across all documents. |
Methods
Name | Description |
---|---|
GetValueForNormalization() | The square of the raw normalization value. |
Normalize(Single, Single) | No normalization is done. |
RawNormalizationValue() | Computes the raw normalization value. This basic implementation returns the query boost. Subclasses may override this method to include other factors (such as idf), or to save the value for inclusion in Normalize(Single, Single), etc. |