Package org.imixs.workflow.engine.solr
Klasse SolrUpdateService
java.lang.Object
org.imixs.workflow.engine.solr.SolrUpdateService
- Alle implementierten Schnittstellen:
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
- Autor:
- rsoika
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidThis method updates the search index based on the eventLog.voidupdateIndex(List<ItemCollection> documents) This method adds a collection of documents to the Lucene index.
-
Felddetails
-
SOLR_AUTOFLUSH_DISABLED
- Siehe auch:
-
SOLR_AUTOFLUSH_INTERVAL
- Siehe auch:
-
SOLR_AUTOFLUSH_INITIALDELAY
- Siehe auch:
-
-
Konstruktordetails
-
SolrUpdateService
public SolrUpdateService()
-
-
Methodendetails
-
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.
- Angegeben von:
updateIndexin SchnittstelleUpdateService- Parameter:
documents- of ItemCollections to be indexed- Löst aus:
RestAPIExceptionIndexException
-
updateIndex
public void updateIndex()Beschreibung aus Schnittstelle kopiert:UpdateServiceThis 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.- Angegeben von:
updateIndexin SchnittstelleUpdateService- Siehe auch:
-