Package org.ametys.web.indexing.solr
Interface SiteDocumentProvider
public interface SiteDocumentProvider
Additional indexed documents provider.
The goal is to provide documents which are not pages and needs to be indexed into order to be search.
The goal is to provide documents which are not pages and needs to be indexed into order to be search.
-
Method Summary
Modifier and TypeMethodDescriptiongetLabel()
The label of the document providervoid
indexSiteDocuments
(Site site, org.apache.solr.client.solrj.SolrClient solrClient, ContainerProgressionTracker progressionTracker) Add documents to the index.void
indexSitemapDocuments
(Sitemap sitemap, org.apache.solr.client.solrj.SolrClient solrClient) Add documents to the index.
-
Method Details
-
getLabel
The label of the document provider- Returns:
- The label
-
indexSiteDocuments
void indexSiteDocuments(Site site, org.apache.solr.client.solrj.SolrClient solrClient, ContainerProgressionTracker progressionTracker) throws Exception Add documents to the index.- Parameters:
site
- the site to index.solrClient
- The solr client to useprogressionTracker
- The progression tracker- Throws:
Exception
- if an error occurs.
-
indexSitemapDocuments
void indexSitemapDocuments(Sitemap sitemap, org.apache.solr.client.solrj.SolrClient solrClient) throws Exception Add documents to the index.- Parameters:
sitemap
- the sitemap to index.solrClient
- The solr client to use- Throws:
Exception
- if an error occurs.
-