Creates a sort, possibly in reverse, 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,
	bool reverse
)
Visual Basic
Public Sub New ( _
	field As String, _
	type As Integer, _
	reverse As Boolean _
)
Visual C++
public:
SortField(
	String^ field, 
	int type, 
	bool reverse
)

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.
reverse
Type: System..::..Boolean
True if natural order should be reversed.

See Also