|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LuceneIndexService
Interface for Lucene Index Service.
| Nested Class Summary | |
|---|---|
static class |
LuceneIndexService.ExecutionMode
Types of errors this pipelet can produce. |
| Field Summary | |
|---|---|
static java.lang.String |
PROPERTY_FORCE_UNLOCK_INDEX
Configuration property if to force to unlock a locked index on service activation. |
static java.lang.String |
PROPERTY_TEMPORARY_INDEX_DIR
Configuration property for the index directory - if true, it will be generated and PROPERTY_INDEX_DIR will be ignored. |
| Fields inherited from interface org.eclipse.smila.lucene.LuceneService |
|---|
BUNDLE_NAME, CONFIG_FILE_MAPPINGS, ID_FIELD |
| Method Summary | |
|---|---|
void |
addRecord(Blackboard blackboard,
java.lang.String id,
java.lang.String indexName,
boolean allowDoublets)
Add a record to the Lucene index. |
void |
createIndex(java.lang.String indexName)
Creates the index. |
void |
deleteIndex(java.lang.String indexName)
Delete index. |
void |
deleteRecord(java.lang.String id,
java.lang.String indexName)
Delete a record from the Lucene index. |
void |
flushIndex(java.lang.String indexName)
Flushes the index with the given name. |
java.util.Iterator<java.lang.String> |
getIndexNames()
Returns the names of all available indexes. |
boolean |
isIndexExists(java.lang.String indexName)
Checks if is index exists. |
void |
removeWriteLock(java.lang.String indexName)
Removes the write.lock of the Lucene index if any exists. |
void |
renameIndex(java.lang.String indexName,
java.lang.String newIndexName)
Rename index. |
void |
reorganizeIndex(java.lang.String indexName)
Reorganize index. |
| Field Detail |
|---|
static final java.lang.String PROPERTY_TEMPORARY_INDEX_DIR
static final java.lang.String PROPERTY_FORCE_UNLOCK_INDEX
| Method Detail |
|---|
void addRecord(Blackboard blackboard,
java.lang.String id,
java.lang.String indexName,
boolean allowDoublets)
throws BlackboardAccessException,
IndexException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException
blackboard - reference to the BlackboardServiceid - Id of the recordindexName - name of the indexallowDoublets - boolean flag if doublets of documents are allowed in the index
BlackboardAccessException - if any error occurs
IndexException - if any error occurs
java.io.IOException - if any error occurs
javax.xml.parsers.ParserConfigurationException - if any error occurs
void deleteRecord(java.lang.String id,
java.lang.String indexName)
throws IndexException
id - Id of the recordindexName - name of the index
IndexException - if any error occurs
void createIndex(java.lang.String indexName)
throws IndexException
indexName - the index name
IndexException - the index exception
void deleteIndex(java.lang.String indexName)
throws IndexException
indexName - the index name
IndexException - the index exception
void flushIndex(java.lang.String indexName)
throws IndexException
indexName - name of the index to flush
IndexException - if any error occursjava.util.Iterator<java.lang.String> getIndexNames()
boolean isIndexExists(java.lang.String indexName)
throws IndexException
indexName - the index name
IndexException - the index exception
void removeWriteLock(java.lang.String indexName)
throws IndexException
indexName - the name of the index to remove the lock
IndexException - if any error occurs
void renameIndex(java.lang.String indexName,
java.lang.String newIndexName)
throws IndexException
indexName - the index namenewIndexName - the new index name
IndexException - the index exception
void reorganizeIndex(java.lang.String indexName)
throws IndexException
indexName - the index name
IndexException - the index exception
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||