public class LuceneFormSearchIndexer extends AbstractFormSearchIndexer
| Modifier and Type | Field and Description |
|---|---|
static String |
INDEXER_NAME |
| Constructor and Description |
|---|
LuceneFormSearchIndexer() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteIndex()
Delete the index
|
String |
getDescription() |
org.apache.lucene.document.Document |
getDocument(FormResponse formResponse)
Builds a document which will be used by Lucene during the indexing of this record
|
List<org.apache.lucene.document.Document> |
getDocuments(String formResponseId) |
List<String> |
getListType() |
String |
getName() |
String |
getSpecificSearchAppUrl() |
String |
getVersion() |
void |
indexDocuments() |
void |
indexFormResponseList(StringBuffer sbLog,
List<FormResponse> listFormResponse)
Index a form response list
|
boolean |
isEnable() |
void |
processFullIndexing(StringBuffer sbLog)
add to the index writer the document associate to the key specified in parameter
|
void |
processIncrementalIndexing(StringBuffer sbLog)
add to the index writer the document associate to the key specified in parameter
|
addIndexerAction, getAllIndexerActionByTask, processIndexing, removeIndexerActionpublic static final String INDEXER_NAME
public String getName()
public String getDescription()
public String getVersion()
public boolean isEnable()
public String getSpecificSearchAppUrl()
public List<org.apache.lucene.document.Document> getDocuments(String formResponseId) throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException
IOExceptionInterruptedExceptionfr.paris.lutece.portal.service.message.SiteMessageExceptionpublic org.apache.lucene.document.Document getDocument(FormResponse formResponse)
formResponse - the formResponse objectpublic void processIncrementalIndexing(StringBuffer sbLog)
sbLog - the buffer loggerpublic void processFullIndexing(StringBuffer sbLog)
sbLog - the buffer loggerpublic void indexFormResponseList(StringBuffer sbLog, List<FormResponse> listFormResponse)
IFormSearchIndexerpublic void indexDocuments()
throws IOException,
InterruptedException,
fr.paris.lutece.portal.service.message.SiteMessageException
IOExceptionInterruptedExceptionfr.paris.lutece.portal.service.message.SiteMessageExceptionpublic void deleteIndex()
Copyright © 2019 City of Paris. All rights reserved.