public interface IndexManager
Modifier and Type | Method and Description |
---|---|
void |
createIndex()
Creates index directory and indexing all
documents in the corpus.
|
void |
deleteIndex()
Delete all index files and directories in index location.
|
Corpus |
getCorpus()
Gets the corpus this index manages will index.
|
IndexDefinition |
getIndexDefinition()
Gets the index definition for this index manager.
|
void |
optimizeIndex()
Optimize the existing index
|
void |
setCorpus(Corpus corpus)
Sets the corpus this index manages will index.
|
void |
setIndexDefinition(IndexDefinition indexDefinition)
Sets the index definition for this index manager.
|
void |
sync(List<Document> added,
List<String> removed,
List<Document> changed)
Reindexing changed documents, removing removed documents and
add to the index new corpus documents.
|
Corpus getCorpus()
Corpus
value;void setCorpus(Corpus corpus)
corpus
- a Corpus
value;IndexDefinition getIndexDefinition()
IndexDefinition
value.void setIndexDefinition(IndexDefinition indexDefinition)
indexDefinition
- a IndexDefinition
value.void createIndex() throws IndexException
IndexException
void optimizeIndex() throws IndexException
IndexException
void deleteIndex() throws IndexException
IndexException
void sync(List<Document> added, List<String> removed, List<Document> changed) throws IndexException
IndexException
Copyright © 2024 GATE. All rights reserved.