Create a FieldScoreQuery - a query that scores each document as the value of the numeric input field.

The

CopyC#
type
param tells how to parse the field string values into a numeric score value.

Namespace: Lucene.Net.Search.Function
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public FieldScoreQuery(
	string field,
	FieldScoreQuery..::..Type type
)
Visual Basic
Public Sub New ( _
	field As String, _
	type As FieldScoreQuery..::..Type _
)
Visual C++
public:
FieldScoreQuery(
	String^ field, 
	FieldScoreQuery..::..Type^ type
)

Parameters

field
Type: System..::..String
the numeric field to be used.
type
Type: Lucene.Net.Search.Function..::..FieldScoreQuery..::..Type
the type of the field: either {@link Type#BYTE}, {@link Type#SHORT}, {@link Type#INT}, or {@link Type#FLOAT}.

See Also