Class LuteceAppointmentSearchIndexer
java.lang.Object
fr.paris.lutece.plugins.appointment.modules.management.service.indexer.LuteceAppointmentSearchIndexer
- All Implemented Interfaces:
IAppointmentSearchIndexer,fr.paris.lutece.portal.service.search.SearchIndexer
@ApplicationScoped
public class LuteceAppointmentSearchIndexer
extends Object
implements IAppointmentSearchIndexer
Appointment global indexer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.lucene.document.Document>getDocuments(String strIdDocument) getName()voidindexDocument(int nIdAppointment, int idTask) Directly index one documentvoidbooleanisEnable()voidonStartup(jakarta.servlet.ServletContext context) CDI startup observer - registers the indexer when the application starts, and builds the whole index in the background when the index directory holds none (a fresh site, a site migrated from v7, a new node, an index directory wiped by a redeployment): the core only rebuilds indexers when its own index is missing.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.portal.service.search.SearchIndexer
getTypeLabel
-
Constructor Details
-
LuteceAppointmentSearchIndexer
public LuteceAppointmentSearchIndexer()
-
-
Method Details
-
onStartup
public void onStartup(@Observes @Initialized(jakarta.enterprise.context.ApplicationScoped.class) jakarta.servlet.ServletContext context) CDI startup observer - registers the indexer when the application starts, and builds the whole index in the background when the index directory holds none (a fresh site, a site migrated from v7, a new node, an index directory wiped by a redeployment): the core only rebuilds indexers when its own index is missing.- Parameters:
context- the servlet context
-
getName
- Specified by:
getNamein interfacefr.paris.lutece.portal.service.search.SearchIndexer
-
getDescription
- Specified by:
getDescriptionin interfacefr.paris.lutece.portal.service.search.SearchIndexer
-
getVersion
- Specified by:
getVersionin interfacefr.paris.lutece.portal.service.search.SearchIndexer
-
isEnable
public boolean isEnable()- Specified by:
isEnablein interfacefr.paris.lutece.portal.service.search.SearchIndexer
-
getListType
- Specified by:
getListTypein interfacefr.paris.lutece.portal.service.search.SearchIndexer
-
getSpecificSearchAppUrl
- Specified by:
getSpecificSearchAppUrlin interfacefr.paris.lutece.portal.service.search.SearchIndexer
-
indexDocuments
public void indexDocuments() throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException- Specified by:
indexDocumentsin interfacefr.paris.lutece.portal.service.search.SearchIndexer- Throws:
IOExceptionInterruptedExceptionfr.paris.lutece.portal.service.message.SiteMessageException
-
indexDocument
public void indexDocument(int nIdAppointment, int idTask) Description copied from interface:IAppointmentSearchIndexerDirectly index one document- Specified by:
indexDocumentin interfaceIAppointmentSearchIndexer
-
getDocuments
public List<org.apache.lucene.document.Document> getDocuments(String strIdDocument) throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException - Specified by:
getDocumentsin interfacefr.paris.lutece.portal.service.search.SearchIndexer- Throws:
IOExceptionInterruptedExceptionfr.paris.lutece.portal.service.message.SiteMessageException
-