|
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 IndexManagerIndexException
public void optimizeIndex()
throws IndexException
optimizeIndex in interface IndexManagerIndexException
public void deleteIndex()
throws IndexException
deleteIndex in interface IndexManagerIndexException
public void sync(List added,
List removedIDs,
List changed)
throws IndexException
sync in interface IndexManagerIndexExceptionpublic Corpus getCorpus()
IndexManager
getCorpus in interface IndexManagerCorpus value;public void setCorpus(Corpus corpus)
IndexManager
setCorpus in interface IndexManagercorpus - a Corpus value;public IndexDefinition getIndexDefinition()
IndexManager
getIndexDefinition in interface IndexManagerIndexDefinition value.public void setIndexDefinition(IndexDefinition indexDefinition)
IndexManager
setIndexDefinition in interface IndexManagerindexDefinition - a IndexDefinition value.
|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||