public class CalendarIndexer 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 |
Constructor and Description |
---|
CalendarIndexer() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the indexer service description
|
static org.apache.lucene.document.Document |
getDocument(OccurrenceEvent occurrence,
String strRoleKey,
String strUrl,
String strAgenda)
Builds a document which will be used by Lucene during the indexing of the
calendar list
|
List<org.apache.lucene.document.Document> |
getDocuments(String strDocument)
Get the calendar document
|
List<String> |
getListType() |
String |
getName()
Returns the indexer service name
|
String |
getSpecificSearchAppUrl() |
String |
getVersion()
Returns the indexer service version
|
void |
indexDocuments()
Index all documents
|
void |
indexSubject(Event oEvent,
String sRoleKey,
String strAgenda)
Recursive method for indexing a calendar event
|
boolean |
isEnable()
Tells whether the service is enable or not
|
public static final String PROPERTY_INDEXER_NAME
public static final String SHORT_NAME
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 exceptionInterruptedException
- the exceptionfr.paris.lutece.portal.service.message.SiteMessageException
- the exceptionpublic void indexSubject(Event oEvent, String sRoleKey, String strAgenda) throws IOException, InterruptedException
oEvent
- the eventsRoleKey
- the role keystrAgenda
- the agendaIOException
- 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.SearchIndexer
strDocument
- 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(OccurrenceEvent occurrence, String strRoleKey, String strUrl, String strAgenda) throws IOException, InterruptedException
occurrence
- The occurence eventstrUrl
- the url of the subjectstrRoleKey
- The role keystrAgenda
- the calendar idDocument
containing QuestionAnswer DataIOException
- The IO ExceptionInterruptedException
- 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 String getDescription()
getDescription
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
Copyright © 2015 City of Paris. All rights reserved.