|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.helpdesk.service.search.HelpdeskIndexer
public class HelpdeskIndexer
Helpdesk Indexer
Field Summary | |
---|---|
static String |
PROPERTY_INDEXER_NAME
|
static String |
SHORT_NAME_QUESTION_ANSWER
|
static String |
SHORT_NAME_SUBJECT
|
Constructor Summary | |
---|---|
HelpdeskIndexer()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTY_INDEXER_NAME
public static final String SHORT_NAME_SUBJECT
public static final String SHORT_NAME_QUESTION_ANSWER
Constructor Detail |
---|
public HelpdeskIndexer()
Method Detail |
---|
public String getDescription()
getDescription
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public void indexDocuments() throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException
indexDocuments
in interface fr.paris.lutece.portal.service.search.SearchIndexer
IOException
- the exception
InterruptedException
- the exception
fr.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 subject
IOException
- I/O Exception
InterruptedException
- 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.SearchIndexer
strDocument
- id of the subject to index
IOException
- the exception
InterruptedException
- the exception
fr.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 Plugin
Document
containing QuestionAnswer Data
IOException
- The IO Exception
InterruptedException
- 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 Plugin
Document
containing Subject data
IOException
- The IO Exception
InterruptedException
- The InterruptedExceptionpublic String getName()
getName
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public String getVersion()
getVersion
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public boolean isEnable()
isEnable
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public List<String> getListType()
getListType
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public String getSpecificSearchAppUrl()
getSpecificSearchAppUrl
in interface fr.paris.lutece.portal.service.search.SearchIndexer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |