Package org.imixs.workflow.engine.solr
Class SolrUpdateService
java.lang.Object
org.imixs.workflow.engine.solr.SolrUpdateService
- All Implemented Interfaces:
UpdateService
@DeclareRoles({"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"})
@RolesAllowed({"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"})
public class SolrUpdateService
extends Object
implements UpdateService
The SolrUpdateService process the index event log entries written by the
Imixs DocumentService. The service updates the solr index by flushing the
Index EventLog cache.
- Version:
- 1.1
- Author:
- rsoika
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This method updates the search index based on the eventLog.void
updateIndex
(List<ItemCollection> documents) This method adds a collection of documents to the Lucene index.
-
Field Details
-
SOLR_AUTOFLUSH_DISABLED
- See Also:
-
SOLR_AUTOFLUSH_INTERVAL
- See Also:
-
SOLR_AUTOFLUSH_INITIALDELAY
- See Also:
-
-
Constructor Details
-
SolrUpdateService
public SolrUpdateService()
-
-
Method Details
-
updateIndex
This method adds a collection of documents to the Lucene 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 updateDocumetns() which takes care of uncommitted reads.This method is used by the JobHandlerRebuildIndex only.
- Specified by:
updateIndex
in interfaceUpdateService
- Parameters:
documents
- of ItemCollections to be indexed- Throws:
RestAPIException
IndexException
-
updateIndex
public void updateIndex()Description copied from interface:UpdateService
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.- Specified by:
updateIndex
in interfaceUpdateService
- See Also:
-