Apache Lucene.Net 2.4.0 Class Library API

FieldCache.GetFloats Method (IndexReader, String, FloatParser)

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

field
as floats and returns an array of size
reader.maxDoc()
of the value each document has in the given field.

float[] GetFloats(
   IndexReader reader,
   string field,
   FloatParser parser
);

Parameters

reader
Used to get field values.
field
Which field contains the floats.
parser
Computes float for string values.

Return Value

The values in the given field for each document.

See Also

FieldCache Interface | Lucene.Net.Search Namespace | FieldCache.GetFloats Overload List