Package org.imixs.workflow.engine.index
Interface UpdateService
-
public interface UpdateServiceThe UpdateService defines methods to update the search index. These methods are called by the DocuentService.The method updateIndex(documents) writes documents immediately into the index.
The method updateIndex() updates the search index based on the eventLog.
The UpdateService provides also the default index schema.
- Version:
- 1.0
- Author:
- rsoika
- See Also:
SchemaService
-
-
Field Summary
Fields Modifier and Type Field Description static List<String>DEFAULT_NOANALYSE_FIELD_LISTstatic List<String>DEFAULT_SEARCH_FIELD_LISTstatic List<String>DEFAULT_STORE_FIELD_LIST
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidupdateIndex()This method updates the search index based on the eventLog.voidupdateIndex(List<ItemCollection> documents)This method adds a collection of documents to the index.
-
-
-
Method Detail
-
updateIndex
void updateIndex(List<ItemCollection> documents)
This method adds a collection of documents to the index. The documents are added immediately to the index. Calling this method within a running transaction leads to a uncommitted reads in the index. For transaction control, it is recommended to use instead the the method documentService.addDocumentToIndex() which takes care of uncommitted reads.This method is used by the JobHandlerRebuildIndex only.
- Parameters:
documents- of ItemCollections to be indexed- Throws:
IndexException
-
updateIndex
void updateIndex()
This method updates the search index based on the eventLog. Documents are added by the DocumentService as events to the EventLogService. This ensures that only committed documents are added into the index.- See Also:
DocumentService
-
-