|
||||||||||
| 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 java.lang.String |
PROPERTY_INDEXER_NAME
|
static java.lang.String |
SHORT_NAME_QUESTION_ANSWER
|
static java.lang.String |
SHORT_NAME_SUBJECT
|
| Constructor Summary | |
|---|---|
HelpdeskIndexer()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Returns the indexer service description |
static org.apache.lucene.document.Document |
getDocument(int nIdFaq,
QuestionAnswer questionAnswer,
java.lang.String strUrl,
java.lang.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,
java.lang.String strRoleKey,
java.lang.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 |
java.util.List<org.apache.lucene.document.Document> |
getDocuments(java.lang.String strDocument)
Get the subject document |
java.lang.String |
getName()
Get the name of the indexer. |
java.lang.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 java.lang.String PROPERTY_INDEXER_NAME
public static final java.lang.String SHORT_NAME_SUBJECT
public static final java.lang.String SHORT_NAME_QUESTION_ANSWER
| Constructor Detail |
|---|
public HelpdeskIndexer()
| Method Detail |
|---|
public java.lang.String getDescription()
getDescription in interface fr.paris.lutece.portal.service.search.SearchIndexer
public void indexDocuments()
throws java.io.IOException,
java.lang.InterruptedException,
fr.paris.lutece.portal.service.message.SiteMessageException
indexDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexerjava.io.IOException - the exception
java.lang.InterruptedException - the exception
fr.paris.lutece.portal.service.message.SiteMessageException - the exception
public void indexSubject(Faq faq,
Subject subject)
throws java.io.IOException,
java.lang.InterruptedException
faq - the faq linked to the subjectsubject - the subject
java.io.IOException - I/O Exception
java.lang.InterruptedException - interruptedException
public java.util.List<org.apache.lucene.document.Document> getDocuments(java.lang.String strDocument)
throws java.io.IOException,
java.lang.InterruptedException,
fr.paris.lutece.portal.service.message.SiteMessageException
getDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexerstrDocument - id of the subject to index
java.io.IOException - the exception
java.lang.InterruptedException - the exception
fr.paris.lutece.portal.service.message.SiteMessageException - the exception
public static org.apache.lucene.document.Document getDocument(int nIdFaq,
QuestionAnswer questionAnswer,
java.lang.String strUrl,
java.lang.String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
throws java.io.IOException,
java.lang.InterruptedException
nIdFaq - The Faq IdquestionAnswer - the QuestionAnswer to indexstrUrl - the url of the subjectstrRoleKey - The role keyplugin - The Plugin
Document containing QuestionAnswer Data
java.io.IOException - The IO Exception
java.lang.InterruptedException - The InterruptedException
public static org.apache.lucene.document.Document getDocument(Subject subject,
java.lang.String strRoleKey,
java.lang.String strUrl,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
throws java.io.IOException,
java.lang.InterruptedException
subject - the Subject to indexstrUrl - the url of the subjectstrRoleKey - The role keyplugin - The Plugin
Document containing Subject data
java.io.IOException - The IO Exception
java.lang.InterruptedException - The InterruptedExceptionpublic java.lang.String getName()
getName in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic java.lang.String getVersion()
getVersion in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic boolean isEnable()
isEnable 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 | |||||||||