public class HelpdeskIndexer extends Object implements fr.paris.lutece.portal.service.search.SearchIndexer
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_INDEXER_NAME |
static String |
SHORT_NAME_QUESTION_ANSWER |
static String |
SHORT_NAME_SUBJECT |
| Constructor and Description |
|---|
HelpdeskIndexer() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns the indexer service description
|
static org.apache.lucene.document.Document |
getDocument(int nIdFaq,
QuestionAnswer questionAnswer,
String strUrl,
String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Builds a document which will be used by Lucene during the indexing of the
question/answer list
|
static org.apache.lucene.document.Document |
getDocument(Subject subject,
String strRoleKey,
String strUrl,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Builds a document which will be used by Lucene during the indexing of the
subject list
|
List<org.apache.lucene.document.Document> |
getDocuments(String strDocument)
Get the subject document
|
List<String> |
getListType() |
String |
getName()
Get the name of the indexer.
|
String |
getSpecificSearchAppUrl() |
String |
getVersion()
Get the version of the indexer
|
void |
indexDocuments()
Index all documents
|
void |
indexSubject(Faq faq,
Subject subject)
Recursive method for indexing a subject and his children
|
boolean |
isEnable()
Get the state of indexer
|
public static final String PROPERTY_INDEXER_NAME
public static final String SHORT_NAME_SUBJECT
public static final String SHORT_NAME_QUESTION_ANSWER
public String getDescription()
getDescription in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic void indexDocuments()
throws IOException,
InterruptedException,
fr.paris.lutece.portal.service.message.SiteMessageException
indexDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexerIOException - the exceptionInterruptedException - the exceptionfr.paris.lutece.portal.service.message.SiteMessageException - the exceptionpublic void indexSubject(Faq faq, Subject subject) throws IOException, InterruptedException
faq - the faq linked to the subjectsubject - the subjectIOException - I/O ExceptionInterruptedException - interruptedExceptionpublic List<org.apache.lucene.document.Document> getDocuments(String strDocument) throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException
getDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexerstrDocument - id of the subject to indexIOException - the exceptionInterruptedException - the exceptionfr.paris.lutece.portal.service.message.SiteMessageException - the exceptionpublic static org.apache.lucene.document.Document getDocument(int nIdFaq,
QuestionAnswer questionAnswer,
String strUrl,
String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
throws IOException,
InterruptedException
nIdFaq - The Faq IdquestionAnswer - the QuestionAnswer to indexstrUrl - the url of the subjectstrRoleKey - The role keyplugin - The PluginDocument containing QuestionAnswer DataIOException - The IO ExceptionInterruptedException - The InterruptedExceptionpublic static org.apache.lucene.document.Document getDocument(Subject subject, String strRoleKey, String strUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws IOException, InterruptedException
subject - the Subject to indexstrUrl - the url of the subjectstrRoleKey - The role keyplugin - The PluginDocument containing Subject dataIOException - The IO ExceptionInterruptedException - The InterruptedExceptionpublic String getName()
getName in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic String getVersion()
getVersion in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic boolean isEnable()
isEnable in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic List<String> getListType()
getListType in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic String getSpecificSearchAppUrl()
getSpecificSearchAppUrl in interface fr.paris.lutece.portal.service.search.SearchIndexerCopyright © 2017 City of Paris. All rights reserved.