Apache Lucene.Net 2.1 Class Library API

FieldCache Members

FieldCache overview

Public Instance Methods

Close 
GetAutoChecks 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.
GetCustomChecks the internal cache for an appropriate entry, and if none is found reads the terms out of
field
and calls the given SortComparator to get the sort values. A hit in the cache will happen if
reader
,
field
, and
comparator
are the same (using
equals()
) as a previous call to this method.
GetFloatsOverloaded. 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.
GetIntsOverloaded. Checks the internal cache for an appropriate entry, and if none is found, reads the terms in
field
as integers and returns an array of size
reader.maxDoc()
of the value each document has in the given field.
GetStringIndexChecks 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.
GetStringsChecks the internal cache for an appropriate entry, and if none is found, reads the term values in
field
and returns an array of size
reader.maxDoc()
containing the value each document has in the given field.

See Also

FieldCache Interface | Lucene.Net.Search Namespace