DotLucene 1.4 API Documentation |

# 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