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

Namespace: Lucene.Net.Highlight
Assembly: Lucene.Net.Contrib.Highlighter (in Lucene.Net.Contrib.Highlighter.dll) Version: 2.3.2.1

Syntax

C#
public static WeightedTerm[] GetTerms(
	Query query,
	bool prohibited
)
Visual Basic
Public Shared Function GetTerms ( _
	query As Query, _
	prohibited As Boolean _
) As WeightedTerm()
Visual C++
public:
static array<WeightedTerm^>^ GetTerms(
	Query^ query, 
	bool prohibited
)

Parameters

query
Type: Lucene.Net.Search..::..Query
Query to extract term texts from
prohibited
Type: System..::..Boolean
CopyC#
true
to extract "prohibited" terms, too

Return Value

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

See Also