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

Parameters

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

Return Value

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

See Also