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
  • Felddetails

  • Konstruktordetails

    • SolrUpdateService

      public SolrUpdateService()
  • Methodendetails

    • 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.

      Angegeben von:
      updateIndex in Schnittstelle UpdateService
      Parameter:
      documents - of ItemCollections to be indexed
      Löst aus:
      RestAPIException
      IndexException
    • updateIndex

      public void updateIndex()
      Beschreibung aus Schnittstelle kopiert: 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.
      Angegeben von:
      updateIndex in Schnittstelle UpdateService
      Siehe auch: