Lucene.Net 1.9.1 Class Library

FieldCache.GetAuto Method 

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

field
to see if it contains integers, floats or strings, and then calls one of the other methods in this class to get the values. For string values, a StringIndex is returned. After calling this method, there is an entry in the cache for both type
AUTO
and the actual found type.

object GetAuto(
   IndexReader reader,
   string field
);

Parameters

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

Return Value

int[], float[] or StringIndex.

See Also

FieldCache Interface | Lucene.Net.Search Namespace