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 IndexManagerIndexExceptionvoid optimizeIndex()
throws IndexException
IndexExceptionvoid deleteIndex()
throws IndexException
IndexExceptionvoid add(String corpusPersistenceID, List<Document> addedDocuments) throws IndexException
corpusPersistenceID - addedDocuments - IndexExceptionvoid remove(List<Object> removedDocumentPersistenceIds) throws IndexException
IndexExceptionvoid setCorpus(Corpus corpus) throws IndexException
corpus - IndexExceptionCorpus getCorpus()
Copyright © 2024 GATE. All rights reserved.