DotLucene 1.4 API Documentation |

# 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

#### Return Value

int[], float[] or StringIndex.

#### See Also

FieldCache Interface | Lucene.Net.Search Namespace