Class LuceneFormSearchIndexer
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.service.search.LuceneFormSearchIndexer
-
- All Implemented Interfaces:
IFormSearchIndexer
public class LuceneFormSearchIndexer extends java.lang.Object implements IFormSearchIndexer
Forms global indexer
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBEAN_SERVICE
-
Constructor Summary
Constructors Constructor Description LuceneFormSearchIndexer(LuceneLockManager lockManager)Constructor
-
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 responsejava.lang.StringfullIndexing()Launch full Indexingjava.lang.StringincrementalIndexing()Launch incremental IndexingvoidindexDocument(int nIdFormResponse, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)Directly index one documentbooleanisIndexerInitialized()return true if the indexer is initializedvoidprocessIndexing()process the incremental indexing
-
-
-
Field Detail
-
BEAN_SERVICE
public static final java.lang.String BEAN_SERVICE
- See Also:
- Constant Field Values
-
-
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:
addIndexerActionin interfaceIFormSearchIndexer- Parameters:
nIdFormResponse- the id of the formResponsenIdTask- the key of the action to doplugin- the plugin
-
fullIndexing
public java.lang.String fullIndexing()
Launch full Indexing- Specified by:
fullIndexingin interfaceIFormSearchIndexer- Returns:
- String trace
-
incrementalIndexing
public java.lang.String incrementalIndexing()
Launch incremental Indexing- Specified by:
incrementalIndexingin interfaceIFormSearchIndexer- 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:
indexDocumentin interfaceIFormSearchIndexer
-
processIndexing
public void processIndexing()
process the incremental indexing
-
isIndexerInitialized
public boolean isIndexerInitialized()
return true if the indexer is initialized- Specified by:
isIndexerInitializedin interfaceIFormSearchIndexer- Returns:
- true if the indexer is initialized
-
-