Package org.apache.geode.cache.lucene
Interface LuceneSerializer<T>
- Type Parameters:
T- The type of object supported by this lucene serializer
- All Superinterfaces:
Declarable
- All Known Implementing Classes:
FlatFormatSerializer
An interface for writing the fields of an object into a lucene document
-
Method Summary
Modifier and TypeMethodDescriptionCollection<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.Methods inherited from interface org.apache.geode.cache.Declarable
init, initialize
-
Method Details
-
toDocuments
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
-