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
Modifier and TypeFieldDescriptionprotected AmetysObjectResolver
The Ametys object resolver.protected SiteIndexer
The site indexer.protected SiteManager
The site manager.Fields inherited from class org.ametys.cms.indexing.solr.SolrWorkspaceIndexer
_context, _docProviderEP, _repository, _solrClientProvider, _solrIndexer, _workspaceSelector
Fields inherited from interface org.ametys.cms.indexing.WorkspaceIndexer
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doIndex
(String workspaceName, ContainerProgressionTracker progressionTracker) Index the given workspace.protected void
indexContentRoot
(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, SimpleProgressionTracker progressionTracker) Index the out-of-site contents.protected void
indexPluginsContentRoot
(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, ContainerProgressionTracker progressionTracker) Index the contents stored by pluginsprotected void
indexSharedResources
(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, SimpleProgressionTracker progressionTracker) Index the shared resources.void
service
(ServiceManager manager) Methods inherited from class org.ametys.cms.indexing.solr.SolrWorkspaceIndexer
_createAdditionalDocumentsProgressionTrackerSteps, contextualize, doIndex, ensureCoreExists, ensureCoresExists, getWorkspacesNames, index, index, indexAdditionalDocuments, indexAdditionalDocuments, indexAllWorkspaces, indexAllWorkspaces
Methods 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:
service
in interfaceServiceable
- Overrides:
service
in classSolrWorkspaceIndexer
- Throws:
ServiceException
-
doIndex
protected void doIndex(String workspaceName, ContainerProgressionTracker progressionTracker) throws IndexingException Description copied from class:SolrWorkspaceIndexer
Index the given workspace.- Overrides:
doIndex
in 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.
-