Apache Lucene.Net 2.4.0 Class Library API

FieldCache.GetStringIndex Method 

Checks the internal cache for an appropriate entry, and if none is found reads the term values in

field
and returns an array of them in natural order, along with an array telling which element in the term array each document uses.

StringIndex GetStringIndex(
   IndexReader reader,
   string field
);

Parameters

reader
Used to get field values.
field
Which field contains the strings.

Return Value

Array of terms and index into the array for each document.

See Also

FieldCache Interface | Lucene.Net.Search Namespace