public interface Indexer
Modifier and Type | Method and Description |
---|---|
void |
add(String corpusPersistenceID,
List<Document> addedDocuments)
Add new documents to Index
|
void |
createIndex(Map<String,Object> parameters)
Create a Index
|
void |
deleteIndex()
Delete all index files and directories in index location.
|
Corpus |
getCorpus()
Corpus to be indexed
|
Map<String,Object> |
getParameters()
Returns the parameters
|
void |
optimizeIndex()
Optimize the existing index
|
void |
remove(List<Object> removedDocumentPersistenceIds)
remove documents from the Index
|
void |
setCorpus(Corpus corpus)
Set the corpus to be indexed
|
void createIndex(Map<String,Object> parameters) throws IndexException
parameters
- - parameters needed for creating an index values
depend on the implementing IndexManagerIndexException
void optimizeIndex() throws IndexException
IndexException
void deleteIndex() throws IndexException
IndexException
void add(String corpusPersistenceID, List<Document> addedDocuments) throws IndexException
corpusPersistenceID
- addedDocuments
- IndexException
void remove(List<Object> removedDocumentPersistenceIds) throws IndexException
IndexException
void setCorpus(Corpus corpus) throws IndexException
corpus
- IndexException
Corpus getCorpus()
Copyright © 2024 GATE. All rights reserved.