Class LuceneFormSearchIndexer
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.service.search.LuceneFormSearchIndexer
-
- All Implemented Interfaces:
IFormSearchIndexer,fr.paris.lutece.portal.service.search.SearchIndexer
public class LuceneFormSearchIndexer extends Object implements IFormSearchIndexer
Forms global indexer
-
-
Field Summary
Fields Modifier and Type Field Description static StringINDEXER_NAME
-
Constructor Summary
Constructors Constructor Description LuceneFormSearchIndexer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddIndexerAction(int nIdFormResponse, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)Add Indexer Action to perform on a form responseStringgetDescription()List<org.apache.lucene.document.Document>getDocuments(String formResponseId)List<String>getListType()StringgetName()StringgetSpecificSearchAppUrl()StringgetVersion()voidindexDocument(int nIdFormResponse, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)Directly index one documentvoidindexDocuments()booleanisEnable()voidprocessIndexing()add to the index writer the document associate to the key specified in parameter
-
-
-
Field Detail
-
INDEXER_NAME
public static final String INDEXER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfacefr.paris.lutece.portal.service.search.SearchIndexer
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfacefr.paris.lutece.portal.service.search.SearchIndexer
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfacefr.paris.lutece.portal.service.search.SearchIndexer
-
isEnable
public boolean isEnable()
- Specified by:
isEnablein interfacefr.paris.lutece.portal.service.search.SearchIndexer
-
getListType
public List<String> getListType()
- Specified by:
getListTypein interfacefr.paris.lutece.portal.service.search.SearchIndexer
-
getSpecificSearchAppUrl
public String getSpecificSearchAppUrl()
- Specified by:
getSpecificSearchAppUrlin interfacefr.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:
addIndexerActionin interfaceIFormSearchIndexer- Parameters:
nIdFormResponse- the id of the formResponsenIdTask- the key of the action to doplugin- the plugin
-
indexDocuments
public void indexDocuments() throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException- Specified by:
indexDocumentsin interfacefr.paris.lutece.portal.service.search.SearchIndexer- Throws:
IOExceptionInterruptedExceptionfr.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:
indexDocumentin interfaceIFormSearchIndexer
-
processIndexing
public void processIndexing()
add to the index writer the document associate to the key specified in parameter- Specified by:
processIndexingin interfaceIFormSearchIndexer
-
getDocuments
public List<org.apache.lucene.document.Document> getDocuments(String formResponseId) throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException
- Specified by:
getDocumentsin interfacefr.paris.lutece.portal.service.search.SearchIndexer- Throws:
IOExceptionInterruptedExceptionfr.paris.lutece.portal.service.message.SiteMessageException
-
-