Class LuceneFormSearchIndexer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BEAN_SERVICE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addIndexerAction​(int nIdFormResponse, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Add Indexer Action to perform on a form response
      java.lang.String fullIndexing()
      Launch full Indexing
      java.lang.String incrementalIndexing()
      Launch incremental Indexing
      void indexDocument​(int nIdFormResponse, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Directly index one document
      boolean isIndexerInitialized()
      return true if the indexer is initialized
      void processIndexing()
      process the incremental indexing
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LuceneFormSearchIndexer

        @Inject
        public LuceneFormSearchIndexer​(LuceneLockManager lockManager)
        Constructor
        Parameters:
        lockManager - The LockManager
    • Method Detail

      • 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 java.lang.String fullIndexing()
        Launch full Indexing
        Specified by:
        fullIndexing in interface IFormSearchIndexer
        Returns:
        String trace
      • incrementalIndexing

        public java.lang.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