Lucene.Net 1.4.3 Class Library
FieldCache Members
FieldCache overview
Public Instance Methods
GetAuto 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.
GetCustom Checks 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.
GetFloats 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.
GetInts 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.
GetStringIndex Checks 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.
GetStrings Checks 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