Method GetIdfWeightedTerms
GetIdfWeightedTerms(Query, IndexReader, String)
Extracts all terms texts of a given
Declaration
public static WeightedTerm[] GetIdfWeightedTerms(Query query, IndexReader reader, string fieldName)
Parameters
Type | Name | Description |
---|---|---|
Query | query | |
IndexReader | reader | used to compute IDF which can be used to a) score selected fragments better b) use graded highlights eg chaning intensity of font color |
System.String | fieldName | the field on which Inverse Document Frequency (IDF) calculations are based |
Returns
Type | Description |
---|---|
WeightedTerm[] | an array of the terms used in a query, plus their weights. |