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
Fields Modifier and Type Field Description static String
SOLR_AUTOFLUSH_DISABLED
static String
SOLR_AUTOFLUSH_INITIALDELAY
static String
SOLR_AUTOFLUSH_INTERVAL
-
Constructor Summary
Constructors Constructor Description SolrUpdateService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
updateIndex()
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 Detail
-
SOLR_AUTOFLUSH_DISABLED
public static final String SOLR_AUTOFLUSH_DISABLED
- See Also:
- Constant Field Values
-
SOLR_AUTOFLUSH_INTERVAL
public static final String SOLR_AUTOFLUSH_INTERVAL
- See Also:
- Constant Field Values
-
SOLR_AUTOFLUSH_INITIALDELAY
public static final String SOLR_AUTOFLUSH_INITIALDELAY
- See Also:
- Constant Field Values
-
-
Method Detail
-
updateIndex
public void updateIndex(List<ItemCollection> documents)
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:
DocumentService
-
-