Creates a sort, possibly in reverse, by terms in the given field where the type of term value is determined dynamically ({@link #AUTO AUTO}).

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

Syntax

C#
[ObsoleteAttribute("Please specify the exact type instead.")]
public SortField(
	string field,
	bool reverse
)
Visual Basic
<ObsoleteAttribute("Please specify the exact type instead.")> _
Public Sub New ( _
	field As String, _
	reverse As Boolean _
)
Visual C++
[ObsoleteAttribute(L"Please specify the exact type instead.")]
public:
SortField(
	String^ field, 
	bool reverse
)

Parameters

field
Type: System..::..String
Name of field to sort by, cannot be
CopyC#
null
.
reverse
Type: System..::..Boolean
True if natural order should be reversed.

See Also