Class LuceneFormSearchIndexer

    • Constructor Detail

      • LuceneFormSearchIndexer

        public LuceneFormSearchIndexer()
    • Method Detail

      • getName

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

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

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

        public 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 IOException,
                                   InterruptedException,
                                   fr.paris.lutece.portal.service.message.SiteMessageException
        Specified by:
        indexDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexer
        Throws:
        IOException
        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 List<org.apache.lucene.document.Document> getDocuments​(String formResponseId)
                                                               throws IOException,
                                                                      InterruptedException,
                                                                      fr.paris.lutece.portal.service.message.SiteMessageException
        Specified by:
        getDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexer
        Throws:
        IOException
        InterruptedException
        fr.paris.lutece.portal.service.message.SiteMessageException