Class LuceneFormSearchIndexer

  • All Implemented Interfaces:
    IFormSearchIndexer, fr.paris.lutece.portal.service.search.SearchIndexer

    public class LuceneFormSearchIndexer
    extends java.lang.Object
    implements IFormSearchIndexer
    Forms global indexer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String INDEXER_NAME  
    • 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 getDescription()
      java.util.List<org.apache.lucene.document.Document> getDocuments​(java.lang.String formResponseId)
      java.util.List<java.lang.String> getListType()
      java.lang.String getName()
      java.lang.String getSpecificSearchAppUrl()
      java.lang.String getVersion()
      void indexDocument​(int nIdFormResponse, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Directly index one document
      void indexDocuments()
      boolean isEnable()
      void processIndexing()
      add to the index writer the document associate to the key specified in parameter
      • Methods inherited from class java.lang.Object

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

      • LuceneFormSearchIndexer

        public LuceneFormSearchIndexer()
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface fr.paris.lutece.portal.service.search.SearchIndexer
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface fr.paris.lutece.portal.service.search.SearchIndexer
      • getVersion

        public java.lang.String getVersion()
        Specified by:
        getVersion in interface fr.paris.lutece.portal.service.search.SearchIndexer
      • isEnable

        public boolean isEnable()
        Specified by:
        isEnable in interface fr.paris.lutece.portal.service.search.SearchIndexer
      • getListType

        public java.util.List<java.lang.String> getListType()
        Specified by:
        getListType in interface fr.paris.lutece.portal.service.search.SearchIndexer
      • getSpecificSearchAppUrl

        public java.lang.String getSpecificSearchAppUrl()
        Specified by:
        getSpecificSearchAppUrl in interface fr.paris.lutece.portal.service.search.SearchIndexer
      • 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
      • indexDocuments

        public void indexDocuments()
                            throws java.io.IOException,
                                   java.lang.InterruptedException,
                                   fr.paris.lutece.portal.service.message.SiteMessageException
        Specified by:
        indexDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexer
        Throws:
        java.io.IOException
        java.lang.InterruptedException
        fr.paris.lutece.portal.service.message.SiteMessageException
      • 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()
        add to the index writer the document associate to the key specified in parameter
        Specified by:
        processIndexing in interface IFormSearchIndexer
      • getDocuments

        public java.util.List<org.apache.lucene.document.Document> getDocuments​(java.lang.String formResponseId)
                                                                         throws java.io.IOException,
                                                                                java.lang.InterruptedException,
                                                                                fr.paris.lutece.portal.service.message.SiteMessageException
        Specified by:
        getDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexer
        Throws:
        java.io.IOException
        java.lang.InterruptedException
        fr.paris.lutece.portal.service.message.SiteMessageException