Highlighter.Net 2.0.0

QueryTermExtractor.GetTerms Method (Query, Boolean, String)

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

public static WeightedTerm[] GetTerms(
   Query query,
   bool prohibited,
   string fieldName
);

Parameters

query
Query to extract term texts from
prohibited
true
to extract "prohibited" terms, too
fieldName
The fieldName used to filter query terms

Return Value

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

See Also

QueryTermExtractor Class | Lucene.Net.Highlight Namespace | QueryTermExtractor.GetTerms Overload List