Interface UpdateService

All Known Implementing Classes:
LuceneUpdateService, SolrUpdateService

public interface UpdateService
The UpdateService defines methods to update the search index. These methods are called by the DocuentService.

The method updateIndex(documents) writes documents immediately into the index.

The method updateIndex() updates the search index based on the eventLog.

The UpdateService provides also the default index schema.

Version:
1.0
Author:
rsoika
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method updates the search index based on the eventLog.
    void
    This method adds a collection of documents to the index.
  • Method Details

    • updateIndex

      void updateIndex(List<ItemCollection> documents)
      This method adds a collection of documents to the 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 documentService.addDocumentToIndex() which takes care of uncommitted reads.

      This method is used by the JobHandlerRebuildIndex only.

      Parameters:
      documents - of ItemCollections to be indexed
      Throws:
      IndexException
    • updateIndex

      void updateIndex()
      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.
      See Also: