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
Helper to control the Solr indexation
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
pauseSolrCommitForEvents
(String[] handledEventIds) Add an argument to all events of the provided ids to disable the committing of content to Solrvoid
restartSolrCommitForEvents
(String[] handledEventIds) Restart the committing of content to Solr for the provided event ids after committing all pending modificationvoid
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The Avalon Role
-
-
Constructor Details
-
SolrIndexHelper
public SolrIndexHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
pauseSolrCommitForEvents
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
Restart the committing of content to Solr for the provided event ids after committing all pending modification- Parameters:
handledEventIds
- the event ids to restart
-