DotLucene 1.4 API Documentation |

# 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
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