Method ComputeWeight
ComputeWeight(Single, CollectionStatistics, TermStatistics[])
Compute any collection-level weight (e.g. IDF, average document length, etc) needed for scoring a query.
Declaration
public abstract Similarity.SimWeight ComputeWeight(float queryBoost, CollectionStatistics collectionStats, params TermStatistics[] termStats)
Parameters
Type | Name | Description |
---|---|---|
System.Single | queryBoost | the query-time boost. |
CollectionStatistics | collectionStats | collection-level statistics, such as the number of tokens in the collection. |
TermStatistics[] | termStats | term-level statistics, such as the document frequency of a term across the collection. |
Returns
Type | Description |
---|---|
Similarity.SimWeight | Similarity.SimWeight object with the information this Similarity needs to score a query. |