Package org.ametys.web.indexing.solr
Class SolrSiteIndexer
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.indexing.solr.SolrSiteIndexer
- All Implemented Interfaces:
LogEnabled,SiteIndexer,Contextualizable,Serviceable
public class SolrSiteIndexer
extends AbstractLogEnabled
implements SiteIndexer, Serviceable, Contextualizable
Solr implementation of
SiteIndexer.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AdditionalDataIndexerExtensionPointThe additional data indexer epprotected SiteDocumentProviderExtensionPointThe site document provider handler.protected SiteManagerThe site manager.protected SolrClientProviderThe Solr client providerprotected SolrIndexerThe solr indexer.protected SolrPageIndexerThe solr page indexer.Fields inherited from interface org.ametys.web.indexing.SiteIndexer
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_indexContents(Site site, String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, SimpleProgressionTracker progressionTracker) Index the contents of a site.protected void_indexResources(Site site, String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, SimpleProgressionTracker progressionTracker) Index the resources of a site.voidcontextualize(Context context) voidIndex a site in all workspacesvoidIndex a site in a specific workspace.voidindexSite(String siteName, String workspaceName, ContainerProgressionTracker progressionTracker) Index a site in a specific workspace.voidindexSite(String siteName, String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, ContainerProgressionTracker progressionTracker) Index a site in a specific workspace.voidindexSite(String siteName, ContainerProgressionTracker progressionTracker) Index a site in all workspacesvoidIndex a site in all workspacesvoidindexSite(Site site, ContainerProgressionTracker progressionTracker) Index a site in a specific workspace.voidindexSitemap(String siteName, String sitemapName) Index a sitemap in all workpacesvoidindexSitemap(String siteName, String sitemapName, String workspaceName) Index a sitemap in a specific workspace.voidindexSitemap(Sitemap sitemap) Index a sitemap in all workpacesvoidservice(ServiceManager manager) voidunindexSite(String siteName) Unindex a site in all workspacesvoidunindexSite(String siteName, String workspaceName) Unindex a site in a specific workspace.voidunindexSitemap(String siteName, String sitemapName) Unindex a sitemap in all workpacesvoidunindexSitemap(String siteName, String sitemapName, String workspaceName) Unindex a sitemap in a specific workspace.Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_siteManager
The site manager. -
_solrIndexer
The solr indexer. -
_solrPageIndexer
The solr page indexer. -
_siteDocProviderEP
The site document provider handler. -
_solrClientProvider
The Solr client provider -
_additionalDataIndexerExtensionPoint
The additional data indexer ep
-
-
Constructor Details
-
SolrSiteIndexer
public SolrSiteIndexer()
-
-
Method Details
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
indexSite
Description copied from interface:SiteIndexerIndex a site in all workspaces- Specified by:
indexSitein interfaceSiteIndexer- Parameters:
site- the site to index.- Throws:
IndexingException- If an error occurs while indexing the site.
-
indexSite
public void indexSite(Site site, ContainerProgressionTracker progressionTracker) throws IndexingException Description copied from interface:SiteIndexerIndex a site in a specific workspace.- Specified by:
indexSitein interfaceSiteIndexer- Parameters:
site- the site to index.progressionTracker- The progression of the indexation- Throws:
IndexingException- If an error occurs while indexing the site.
-
indexSite
Description copied from interface:SiteIndexerIndex a site in all workspaces- Specified by:
indexSitein interfaceSiteIndexer- Parameters:
siteName- the name of the site to index.- Throws:
IndexingException- If an error occurs while indexing the site.
-
indexSite
public void indexSite(String siteName, ContainerProgressionTracker progressionTracker) throws IndexingException Index a site in all workspaces- Parameters:
siteName- the name of the site to index.progressionTracker- The progression of the indexation- Throws:
IndexingException- If an error occurs while indexing the site.
-
indexSite
Description copied from interface:SiteIndexerIndex a site in a specific workspace.- Specified by:
indexSitein interfaceSiteIndexer- Parameters:
siteName- the name of the site to index.workspaceName- The workspace name.- Throws:
IndexingException- If an error occurs while indexing the site.
-
indexSite
public void indexSite(String siteName, String workspaceName, ContainerProgressionTracker progressionTracker) throws IndexingException Description copied from interface:SiteIndexerIndex a site in a specific workspace.- Specified by:
indexSitein interfaceSiteIndexer- Parameters:
siteName- the name of the site to index.workspaceName- The workspace name.progressionTracker- A progression tracker- Throws:
IndexingException- If an error occurs while indexing the site.
-
indexSite
public void indexSite(String siteName, String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, ContainerProgressionTracker progressionTracker) throws IndexingException Description copied from interface:SiteIndexerIndex a site in a specific workspace.- Specified by:
indexSitein interfaceSiteIndexer- Parameters:
siteName- the name of the site to index.workspaceName- The workspace name.solrClient- The solr client to useprogressionTracker- The progression of the indexation- Throws:
IndexingException- If an error occurs while indexing the site.
-
indexSitemap
Description copied from interface:SiteIndexerIndex a sitemap in all workpaces- Specified by:
indexSitemapin interfaceSiteIndexer- Parameters:
sitemap- the sitemap to index.- Throws:
IndexingException- If an error occurs while indexing the sitemap.
-
indexSitemap
Description copied from interface:SiteIndexerIndex a sitemap in all workpaces- Specified by:
indexSitemapin interfaceSiteIndexer- Parameters:
siteName- the site name.sitemapName- the name of the sitemap to index.- Throws:
IndexingException- If an error occurs while indexing the sitemap.
-
indexSitemap
public void indexSitemap(String siteName, String sitemapName, String workspaceName) throws IndexingException Description copied from interface:SiteIndexerIndex a sitemap in a specific workspace.- Specified by:
indexSitemapin interfaceSiteIndexer- Parameters:
siteName- the site name.sitemapName- the name of the sitemap to index.workspaceName- The workspace name.- Throws:
IndexingException- If an error occurs while indexing the sitemap.
-
unindexSite
Description copied from interface:SiteIndexerUnindex a site in all workspaces- Specified by:
unindexSitein interfaceSiteIndexer- Parameters:
siteName- the name of site to unindex.- Throws:
IndexingException- If an error occurs while unindexing the site.
-
unindexSite
Description copied from interface:SiteIndexerUnindex a site in a specific workspace.- Specified by:
unindexSitein interfaceSiteIndexer- Parameters:
siteName- the name of site to unindex.workspaceName- The workspace name.- Throws:
IndexingException- If an error occurs while unindexing the site.
-
unindexSitemap
Description copied from interface:SiteIndexerUnindex a sitemap in all workpaces- Specified by:
unindexSitemapin interfaceSiteIndexer- Parameters:
siteName- the site name.sitemapName- the name of the sitemap to index.- Throws:
IndexingException- If an error occurs while unindexing the sitemap.
-
unindexSitemap
public void unindexSitemap(String siteName, String sitemapName, String workspaceName) throws IndexingException Description copied from interface:SiteIndexerUnindex a sitemap in a specific workspace.- Specified by:
unindexSitemapin interfaceSiteIndexer- Parameters:
siteName- the site name.sitemapName- the name of the sitemap to index.workspaceName- The workspace name.- Throws:
IndexingException- If an error occurs while unindexing the sitemap.
-
_indexContents
protected void _indexContents(Site site, String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, SimpleProgressionTracker progressionTracker) throws Exception Index the contents of a site.- Parameters:
site- The site to index.workspaceName- The workspace namesolrClient- The solr client to useprogressionTracker- The progression of the indexation- Throws:
Exception- If an error occurs indexing the contents.
-
_indexResources
protected void _indexResources(Site site, String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, SimpleProgressionTracker progressionTracker) throws Exception Index the resources of a site.- Parameters:
site- The site to index.workspaceName- The workspace namesolrClient- The solr client to useprogressionTracker- The progression of the indexation- Throws:
Exception- If an error occurs indexing the resources.
-