Package org.ametys.web.indexing.solr
Class SolrWebWorkspaceIndexer
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.indexing.solr.SolrWorkspaceIndexer
org.ametys.web.indexing.solr.SolrWebWorkspaceIndexer
- All Implemented Interfaces:
WorkspaceIndexer,LogEnabled,Component,Contextualizable,Serviceable
Web-specific component indexing a workspace in a Solr server.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectResolverThe Ametys object resolver.protected SiteIndexerThe site indexer.protected SiteManagerThe site manager.Fields inherited from class org.ametys.cms.indexing.solr.SolrWorkspaceIndexer
_context, _docProviderEP, _repository, _solrClientProvider, _solrIndexer, _workspaceSelectorFields inherited from interface org.ametys.cms.indexing.WorkspaceIndexer
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoIndex(String workspaceName, ContainerProgressionTracker progressionTracker) Index the given workspace.protected voidindexContentRoot(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, SimpleProgressionTracker progressionTracker) Index the out-of-site contents.protected voidindexPluginsContentRoot(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, ContainerProgressionTracker progressionTracker) Index the contents stored by pluginsprotected voidindexSharedResources(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, SimpleProgressionTracker progressionTracker) Index the shared resources.voidservice(ServiceManager manager) Methods inherited from class org.ametys.cms.indexing.solr.SolrWorkspaceIndexer
_createAdditionalDocumentsProgressionTrackerSteps, _sortWorkspacesNames, contextualize, doIndex, getWorkspacesNames, index, index, indexAdditionalDocuments, indexAdditionalDocuments, indexAllWorkspaces, indexAllWorkspacesMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_siteManager
The site manager. -
_siteIndexer
The site indexer. -
_resolver
The Ametys object resolver.
-
-
Constructor Details
-
SolrWebWorkspaceIndexer
public SolrWebWorkspaceIndexer()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classSolrWorkspaceIndexer- Throws:
ServiceException
-
doIndex
protected void doIndex(String workspaceName, ContainerProgressionTracker progressionTracker) throws IndexingException Description copied from class:SolrWorkspaceIndexerIndex the given workspace.- Overrides:
doIndexin classSolrWorkspaceIndexer- Parameters:
workspaceName- The workspace name.progressionTracker- The progression of the indexation- Throws:
IndexingException- If an error occurs indexing the workspace.
-
indexContentRoot
protected void indexContentRoot(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, SimpleProgressionTracker progressionTracker) throws Exception Index the out-of-site contents.- Parameters:
workspaceName- The workspace namesolrClient- The solr client to useprogressionTracker- The progression tracker- Throws:
Exception- If an error occurs.
-
indexPluginsContentRoot
protected void indexPluginsContentRoot(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, ContainerProgressionTracker progressionTracker) throws Exception Index the contents stored by plugins- Parameters:
workspaceName- The workspace namesolrClient- The solr client to useprogressionTracker- The progression tracker- Throws:
Exception- If an error occurs.
-