Creates a sort by terms in the given field with the type of term values explicitly given.

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

Syntax

C#
public SortField(
	string field,
	int type
)
Visual Basic
Public Sub New ( _
	field As String, _
	type As Integer _
)
Visual C++
public:
SortField(
	String^ field, 
	int type
)

Parameters

field
Type: System..::..String
Name of field to sort by. Can be
CopyC#
null
if
CopyC#
type
is SCORE or DOC.
type
Type: System..::..Int32
Type of values in the terms.

See Also