public interface LuceneIndex
LuceneIndex represents the Lucene index created over the data stored in Apache Geode regions. The
Lucene indexes are maintained automatically by Apache Geode whenever the entries are updated in
the associated regions. Lucene Indexes are created using LuceneService.createIndexFactory()
by specifying the Lucene index name, the region associated with the Lucene index and the fields
on which the Lucene index is to be created.
Every Lucene index is uniquely identified by the index name and the name of the region associated
with it. To obtain the LuceneIndex created over a region use
LuceneService.getIndex(String, String)
LuceneIndexes are created using gfsh, xml, or the Java API using LuceneService
LuceneService.createIndexFactory()
. More information about LuceneIndex can be found at
LuceneService
Modifier and Type | Method and Description |
---|---|
Map<String,org.apache.lucene.analysis.Analyzer> |
getFieldAnalyzers()
Returns a map containing the field name and the
Analyzer used to tokenize the field. |
String[] |
getFieldNames()
Returns a string array containing the fields on which the LuceneIndex was created.
|
LuceneSerializer |
getLuceneSerializer()
Return the
LuceneSerializer associated with this index |
String |
getName()
Returns the name of the LuceneIndex object.
|
String |
getRegionPath()
Returns the path of the region on which the LuceneIndex was created.
|
boolean |
isIndexingInProgress()
Returns a boolean value to indicate if reindexing is in progress.
|
String getName()
LuceneService.createIndexFactory()
create methodString getRegionPath()
LuceneService.createIndexFactory()
String[] getFieldNames()
LuceneService.createIndexFactory()
Map<String,org.apache.lucene.analysis.Analyzer> getFieldAnalyzers()
Analyzer
used to tokenize the field.
The analyzer to be used on a particular field is set in the addField method while creating the
LuceneIndex using LuceneService.createIndexFactory()
Analyzer
being used on each indexed field.LuceneSerializer getLuceneSerializer()
LuceneSerializer
associated with this indexLuceneSerializer
associated with this indexboolean isIndexingInProgress()