Class 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
    • Constructor Detail

      • SolrUpdateService

        public SolrUpdateService()
    • 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 interface UpdateService
        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 interface UpdateService
        See Also:
        DocumentService