VMware GemFire Search Java API Reference
Package org.apache.geode.cache.lucene
Interface LuceneSerializer<T>
-
- Type Parameters:
T- The type of object supported by this lucene serializer
- All Superinterfaces:
org.apache.geode.cache.Declarable
- All Known Implementing Classes:
FlatFormatSerializer
public interface LuceneSerializer<T> extends org.apache.geode.cache.DeclarableAn interface for writing the fields of an object into a lucene document
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<org.apache.lucene.document.Document>toDocuments(LuceneIndex index, T value)Add the fields of the given value to a set of documents Added fields should be marked withField.Store.NO.
-
-
-
Method Detail
-
toDocuments
java.util.Collection<org.apache.lucene.document.Document> toDocuments(LuceneIndex index, T value)
Add the fields of the given value to a set of documents Added fields should be marked withField.Store.NO. These fields are only used for searches. When doing a query, geode will return the value from the region, not any fields that are stored on the returned Documents.- Parameters:
index- lucene indexvalue- user object to be serialized into index- Returns:
- a set of documents
-
-