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 voidIndex the given workspace.protected voidindexContentRoot(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) Index the out-of-site contents.protected voidindexPluginsContentRoot(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) Index the contents stored by pluginsprotected voidindexSharedResources(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) Index the shared resources.voidservice(ServiceManager manager) Methods inherited from class org.ametys.cms.indexing.solr.SolrWorkspaceIndexer
contextualize, ensureCoreExists, ensureCoresExists, index, indexAdditionalDocuments, 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
Description copied from class:SolrWorkspaceIndexerIndex the given workspace.- Overrides:
doIndexin 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.
-