Lucene.Net 1.9.1 Class Library

FieldCache.GetCustom Method 

Checks the internal cache for an appropriate entry, and if none is found reads the terms out of

field
and calls the given SortComparator to get the sort values. A hit in the cache will happen if
reader
,
field
, and
comparator
are the same (using
equals()
) as a previous call to this method.

IComparable[] GetCustom(
   IndexReader reader,
   string field,
   SortComparator comparator
);

Parameters

reader
Used to get field values.
field
Which field contains the values.
comparator
Used to convert terms into something to sort by.

Return Value

Array of sort objects, one for each document.

See Also

FieldCache Interface | Lucene.Net.Search Namespace