Klasse LuceneUpdateService

java.lang.Object
org.imixs.workflow.engine.lucene.LuceneUpdateService
Alle implementierten Schnittstellen:
UpdateService

public class LuceneUpdateService extends Object implements UpdateService
The LuceneUpdateService provides methods to write Imixs Workitems into a Lucene search index. With the method addWorkitem() a ItemCollection can be added to a lucene search index. The service init method reads the property file 'imixs.properties' from the current classpath to determine the configuration.
  • The property "IndexDir" defines the location of the lucene index
  • The property "FulltextFieldList" lists all fields which should be searchable after a workitem was updated
  • The property "IndexFieldList" lists all fields which should be indexed as keywords by the lucene search engine
The singleton pattern is used to avoid conflicts within multi-thread scenarios. The service is used by the LucenPlugin to update the lucene index during a workflow processing step.
Version:
1.2
Autor:
rsoika
Siehe auch:
  • Ungültige Referenz
    LucenePlugin
  • Konstruktordetails

    • LuceneUpdateService

      public LuceneUpdateService()
  • 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:
      IndexException
    • updateIndex

      public void updateIndex()
      This method flush the event log.
      Angegeben von:
      updateIndex in Schnittstelle UpdateService
      Siehe auch: