Checks the internal cache for an appropriate entry, and if none is found reads
CopyC#
field
to see if it contains integers, longs, 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
CopyC#
AUTO
and the actual found type.

Namespace: Lucene.Net.Search
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
[ObsoleteAttribute("Please specify the exact type, instead. Especially, guessing does not work with the new NumericField type.")]
Object GetAuto(
	IndexReader reader,
	string field
)
Visual Basic
<ObsoleteAttribute("Please specify the exact type, instead. Especially, guessing does not work with the new NumericField type.")> _
Function GetAuto ( _
	reader As IndexReader, _
	field As String _
) As Object
Visual C++
[ObsoleteAttribute(L"Please specify the exact type, instead. Especially, guessing does not work with the new NumericField type.")]
Object^ GetAuto(
	IndexReader^ reader, 
	String^ field
)

Parameters

reader
Type: Lucene.Net.Index..::..IndexReader
Used to get field values.
field
Type: System..::..String
Which field contains the values.

Return Value

int[], long[], float[] or StringIndex.

See Also