|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.creole.ir.lucene.LuceneIndexManager
public class LuceneIndexManager
This class represents Lucene implementation of IndexManeager interface.
Field Summary | |
---|---|
static String |
CORPUS_INDEX_FEATURE
constant that ensures that corpus is indexed with IR plugin |
static String |
CORPUS_INDEX_FEATURE_VALUE
|
static String |
DOCUMENT_ID
used in Lucene Documents as a key for gate document ID value. |
Constructor Summary | |
---|---|
LuceneIndexManager()
Constructor of the class. |
Method Summary | |
---|---|
void |
createIndex()
Creates index directory and indexing all documents in the corpus. |
void |
deleteIndex()
Delete index. |
Corpus |
getCorpus()
Gets the corpus this index manages will index. |
IndexDefinition |
getIndexDefinition()
Gets the index definition for this index manager. |
void |
optimizeIndex()
Optimize 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 added,
List removedIDs,
List changed)
Reindexing changed documents, removing removed documents and add to the index new corpus documents. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DOCUMENT_ID
public static final String CORPUS_INDEX_FEATURE
public static final String CORPUS_INDEX_FEATURE_VALUE
Constructor Detail |
---|
public LuceneIndexManager()
Method Detail |
---|
public void createIndex() throws IndexException
createIndex
in interface IndexManager
IndexException
public void optimizeIndex() throws IndexException
optimizeIndex
in interface IndexManager
IndexException
public void deleteIndex() throws IndexException
deleteIndex
in interface IndexManager
IndexException
public void sync(List added, List removedIDs, List changed) throws IndexException
sync
in interface IndexManager
IndexException
public Corpus getCorpus()
IndexManager
getCorpus
in interface IndexManager
Corpus
value;public void setCorpus(Corpus corpus)
IndexManager
setCorpus
in interface IndexManager
corpus
- a Corpus
value;public IndexDefinition getIndexDefinition()
IndexManager
getIndexDefinition
in interface IndexManager
IndexDefinition
value.public void setIndexDefinition(IndexDefinition indexDefinition)
IndexManager
setIndexDefinition
in interface IndexManager
indexDefinition
- a IndexDefinition
value.
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |