Highlighter.Net 2.0.0

QueryTermExtractor.GetIdfWeightedTerms Method 

Extracts all terms texts of a given Query into an array of WeightedTerms

public static WeightedTerm[] GetIdfWeightedTerms(
   Query query,
   IndexReader reader,
   string fieldName
);

Parameters

query
Query to extract term texts from
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
fieldName
the field on which Inverse Document Frequency (IDF) calculations are based

Return Value

an array of the terms used in a query, plus their weights.

See Also

QueryTermExtractor Class | Lucene.Net.Highlight Namespace