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
)
Visual Basic
Public Shared Function GetTerms ( _
	query As Query _
) As WeightedTerm()
Visual C++
public:
static array<WeightedTerm^>^ GetTerms(
	Query^ query
)

Parameters

query
Type: Lucene.Net.Search..::..Query
Query to extract term texts from

Return Value

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

See Also