Class LuceneFormSearchIndexer

java.lang.Object
fr.paris.lutece.plugins.forms.service.search.LuceneFormSearchIndexer
All Implemented Interfaces:
IFormSearchIndexer

@ApplicationScoped public class LuceneFormSearchIndexer extends Object implements IFormSearchIndexer
Forms global indexer
  • Field Details

  • Constructor Details

    • LuceneFormSearchIndexer

      @Inject public LuceneFormSearchIndexer(@Named("forms.luceneLockManager") LuceneLockManager lockManager)
      Constructor
      Parameters:
      lockManager - The LockManager
  • Method Details

    • addIndexerAction

      public void addIndexerAction(int nIdFormResponse, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Add Indexer Action to perform on a form response
      Specified by:
      addIndexerAction in interface IFormSearchIndexer
      Parameters:
      nIdFormResponse - the id of the formResponse
      nIdTask - the key of the action to do
      plugin - the plugin
    • fullIndexing

      public String fullIndexing()
      Launch full Indexing
      Specified by:
      fullIndexing in interface IFormSearchIndexer
      Returns:
      String trace
    • incrementalIndexing

      public String incrementalIndexing()
      Launch incremental Indexing
      Specified by:
      incrementalIndexing in interface IFormSearchIndexer
      Returns:
      String trace
    • indexDocument

      public void indexDocument(int nIdFormResponse, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Directly index one document
      Specified by:
      indexDocument in interface IFormSearchIndexer
    • processIndexing

      public void processIndexing()
      process the incremental indexing
    • isIndexerInitialized

      public boolean isIndexerInitialized()
      return true if the indexer is initialized
      Specified by:
      isIndexerInitialized in interface IFormSearchIndexer
      Returns:
      true if the indexer is initialized