public class SharedFieldCache extends Object
org.apache.lucene.search.FieldCacheImpl.
 The lucene FieldCache class has some sort of support for custom comparators
 but it only works on the basis of a field name. There is no further control
 over the terms to iterate, that's why we use our own implementation.| Modifier and Type | Class and Description | 
|---|---|
| static class  | SharedFieldCache.ValueIndexExpert: Stores term text values and document ordering data. | 
| Modifier and Type | Field and Description | 
|---|---|
| static SharedFieldCache | INSTANCEReference to the single instance of  SharedFieldCache. | 
| Modifier and Type | Method and Description | 
|---|---|
| SharedFieldCache.ValueIndex | getValueIndex(org.apache.lucene.index.IndexReader reader,
             String field,
             String prefix)Creates a  ValueIndexfor afieldand a termprefix. | 
public static final SharedFieldCache INSTANCE
SharedFieldCache.public SharedFieldCache.ValueIndex getValueIndex(org.apache.lucene.index.IndexReader reader, String field, String prefix) throws IOException
ValueIndex for a field and a term
 prefix. The term prefix acts as the property name for the
 shared field.
 
 This method is an adapted version of: FieldCacheImpl.getStringIndex()
reader - the IndexReader.field - name of the shared field.prefix - the property name, will be used as term prefix.IOException - if an error occurs while reading from the index.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.