Class SolrIndexHelper

java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.indexing.solr.SolrIndexHelper
All Implemented Interfaces:
LogEnabled, Component, Serviceable

public class SolrIndexHelper extends AbstractLogEnabled implements Serviceable, Component
Helper to control the Solr indexation
  • Field Details

    • ROLE

      public static final String ROLE
      The Avalon Role
  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager manager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Throws:
      ServiceException
    • pauseSolrCommitForEvents

      public void pauseSolrCommitForEvents(String[] handledEventIds)
      Add an argument to all events of the provided ids to disable the committing of content to Solr
      Parameters:
      handledEventIds - the event ids that will not be committed
    • restartSolrCommitForEvents

      public void restartSolrCommitForEvents(String[] handledEventIds)
      Restart the committing of content to Solr for the provided event ids after committing all pending modification
      Parameters:
      handledEventIds - the event ids to restart