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
Index the given workspace.protected void
indexContentRoot
(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) Index the out-of-site contents.protected void
indexPluginsContentRoot
(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) Index the contents stored by pluginsprotected void
indexSharedResources
(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) Index the shared resources.void
service
(ServiceManager manager) Methods inherited from class org.ametys.cms.indexing.solr.SolrWorkspaceIndexer
contextualize, ensureCoreExists, ensureCoresExists, index, indexAdditionalDocuments, 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
Description copied from class:SolrWorkspaceIndexer
Index the given workspace.- Overrides:
doIndex
in classSolrWorkspaceIndexer
- Parameters:
workspaceName
- The workspace name.- Throws:
IndexingException
- If an error occurs indexing the workspace.
-
indexContentRoot
protected void indexContentRoot(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) throws Exception Index the out-of-site contents.- Parameters:
workspaceName
- The workspace namesolrClient
- The solr client to use- Throws:
Exception
- If an error occurs.
-
indexPluginsContentRoot
protected void indexPluginsContentRoot(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) throws Exception Index the contents stored by plugins- Parameters:
workspaceName
- The workspace namesolrClient
- The solr client to use- Throws:
Exception
- If an error occurs.
-