Sets the sort to the terms in
CopyC#
field
possibly in reverse, then by index order (document number).

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

Syntax

C#
[ObsoleteAttribute("Please specify the type explicitly by first creating a SortField and then use SetSort(SortField)")]
public virtual void SetSort(
	string field,
	bool reverse
)
Visual Basic
<ObsoleteAttribute("Please specify the type explicitly by first creating a SortField and then use SetSort(SortField)")> _
Public Overridable Sub SetSort ( _
	field As String, _
	reverse As Boolean _
)
Visual C++
[ObsoleteAttribute(L"Please specify the type explicitly by first creating a SortField and then use SetSort(SortField)")]
public:
virtual void SetSort(
	String^ field, 
	bool reverse
)

Parameters

field
Type: System..::..String

[Missing <param name="field"/> documentation for "M:Lucene.Net.Search.Sort.SetSort(System.String,System.Boolean)"]

reverse
Type: System..::..Boolean

[Missing <param name="reverse"/> documentation for "M:Lucene.Net.Search.Sort.SetSort(System.String,System.Boolean)"]

See Also