Creates a comparator for the field in the given index.
If an error occurs reading the index.

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

Syntax

C#
public abstract FieldComparator NewComparator(
	string fieldname,
	int numHits,
	int sortPos,
	bool reversed
)
Visual Basic
Public MustOverride Function NewComparator ( _
	fieldname As String, _
	numHits As Integer, _
	sortPos As Integer, _
	reversed As Boolean _
) As FieldComparator
Visual C++
public:
virtual FieldComparator^ NewComparator(
	String^ fieldname, 
	int numHits, 
	int sortPos, 
	bool reversed
) abstract

Parameters

fieldname
Type: System..::..String
Name of the field to create comparator for.
numHits
Type: System..::..Int32

[Missing <param name="numHits"/> documentation for "M:Lucene.Net.Search.FieldComparatorSource.NewComparator(System.String,System.Int32,System.Int32,System.Boolean)"]

sortPos
Type: System..::..Int32

[Missing <param name="sortPos"/> documentation for "M:Lucene.Net.Search.FieldComparatorSource.NewComparator(System.String,System.Int32,System.Int32,System.Boolean)"]

reversed
Type: System..::..Boolean

[Missing <param name="reversed"/> documentation for "M:Lucene.Net.Search.FieldComparatorSource.NewComparator(System.String,System.Int32,System.Int32,System.Boolean)"]

Return Value

FieldComparator.

See Also