Package org.ametys.cms.indexing.solr
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
-
-
Constructor Summary
Constructors Constructor Description SolrIndexHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpauseSolrCommitForEvents(String[] handledEventIds)Add an argument to all events of the type to disable the committing of content to SolrvoidrestartSolrCommitForEvents(String[] handledEventIds)Restart the committing of content to Solr for the providedEventTypeafter committing all pending modificationvoidservice(ServiceManager manager)-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
SolrIndexHelper
public SolrIndexHelper()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
pauseSolrCommitForEvents
public void pauseSolrCommitForEvents(String[] handledEventIds)
Add an argument to all events of the type to disable the committing of content to Solr- Parameters:
handledEventIds- theEventTypethat will not be committed
-
restartSolrCommitForEvents
public void restartSolrCommitForEvents(String[] handledEventIds)
Restart the committing of content to Solr for the providedEventTypeafter committing all pending modification- Parameters:
handledEventIds- theEventTypeto restart
-
-