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 void
pauseSolrCommitForEvents(String[] handledEventIds)
Add an argument to all events of the type to disable the committing of content to Solrvoid
restartSolrCommitForEvents(String[] handledEventIds)
Restart the committing of content to Solr for the providedEventType
after committing all pending modificationvoid
service(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:
service
in 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
- theEventType
that will not be committed
-
restartSolrCommitForEvents
public void restartSolrCommitForEvents(String[] handledEventIds)
Restart the committing of content to Solr for the providedEventType
after committing all pending modification- Parameters:
handledEventIds
- theEventType
to restart
-
-