Lucene.Net 1.9.1 Class Library

SortComparatorSource.NewComparator Method 

Creates a comparator for the field in the given index.

ScoreDocComparator NewComparator(
   IndexReader reader,
   string fieldname
);

Parameters

reader
Index to create comparator for.
fieldname
Field to create comparator for.

Return Value

Comparator of ScoreDoc objects.

See Also

SortComparatorSource Interface | Lucene.Net.Search Namespace