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 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

      public String getName()
      Specified by:
      getName in interface fr.paris.lutece.portal.service.search.SearchIndexer
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface fr.paris.lutece.portal.service.search.SearchIndexer
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in interface fr.paris.lutece.portal.service.search.SearchIndexer
    • isEnable

      public boolean isEnable()
      Specified by:
      isEnable in interface fr.paris.lutece.portal.service.search.SearchIndexer
    • getListType

      public List<String> getListType()
      Specified by:
      getListType in interface fr.paris.lutece.portal.service.search.SearchIndexer
    • getSpecificSearchAppUrl

      public String getSpecificSearchAppUrl()
      Specified by:
      getSpecificSearchAppUrl in interface fr.paris.lutece.portal.service.search.SearchIndexer
    • indexDocuments

      public void indexDocuments() throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException
      Specified by:
      indexDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexer
      Throws:
      IOException
      InterruptedException
      fr.paris.lutece.portal.service.message.SiteMessageException
    • indexDocument

      public void indexDocument(int nIdAppointment, int idTask)
      Description copied from interface: IAppointmentSearchIndexer
      Directly index one document
      Specified by:
      indexDocument in interface IAppointmentSearchIndexer
    • getDocuments

      public List<org.apache.lucene.document.Document> getDocuments(String strIdDocument) throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException
      Specified by:
      getDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexer
      Throws:
      IOException
      InterruptedException
      fr.paris.lutece.portal.service.message.SiteMessageException