Schnittstelle UpdateService

Alle bekannten Implementierungsklassen:
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
Autor:
rsoika
Siehe auch:
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    This method updates the search index based on the eventLog.
    void
    This method adds a collection of documents to the index.
  • Methodendetails

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

      Parameter:
      documents - of ItemCollections to be indexed
      Löst aus:
      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.
      Siehe auch: