Initializes a new instance of the QueryScorer class

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

Syntax

C#
public QueryScorer(
	Query query,
	string fieldName
)
Visual Basic
Public Sub New ( _
	query As Query, _
	fieldName As String _
)
Visual C++
public:
QueryScorer(
	Query^ query, 
	String^ fieldName
)

Parameters

query
Type: Lucene.Net.Search..::..Query
a Lucene query (ideally rewritten using query.rewrite before being passed to this class and the searcher)
fieldName
Type: System..::..String
the Field name which is used to match Query terms

See Also