public abstract class CatalogSolrIndexOperation extends MultiTenantGlobalIndexOperation
Catalog from BroadleafRequestContext.getCurrentCatalog(). This builds
the index directly on the primary SolrClient (obtained via SolrConfiguration.getServer()) so this operation
should only be done once to avoid duplicate documents in the index.| Modifier and Type | Field and Description |
|---|---|
protected HashSet<Long> |
currentReindexProcesses |
protected boolean |
errorOnConcurrentReindex |
protected org.broadleafcommerce.core.search.service.solr.index.SolrIndexService |
indexService |
| Constructor and Description |
|---|
CatalogSolrIndexOperation(org.broadleafcommerce.core.search.service.solr.index.SolrIndexService indexService,
org.broadleafcommerce.core.search.service.solr.SolrConfiguration solrConfiguration,
org.broadleafcommerce.core.search.service.solr.SolrHelperService shs,
boolean errorOnConcurrentReindex,
HashSet<Long> currentReindexProcesses) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.solr.client.solrj.SolrClient |
getSolrServerForIndexing() |
boolean |
obtainLock() |
void |
releaseLock() |
afterCountIndexables, afterReadIndexables, beforeCountIndexables, beforeReadIndexablesafterBuildPage, beforeBuildPage, getSolrCollectionForIndexingprotected org.broadleafcommerce.core.search.service.solr.index.SolrIndexService indexService
protected boolean errorOnConcurrentReindex
public CatalogSolrIndexOperation(org.broadleafcommerce.core.search.service.solr.index.SolrIndexService indexService,
org.broadleafcommerce.core.search.service.solr.SolrConfiguration solrConfiguration,
org.broadleafcommerce.core.search.service.solr.SolrHelperService shs,
boolean errorOnConcurrentReindex,
HashSet<Long> currentReindexProcesses)
public boolean obtainLock()
obtainLock in interface org.broadleafcommerce.core.search.service.solr.index.SolrIndexOperationobtainLock in class org.broadleafcommerce.core.search.service.solr.index.GlobalSolrFullReIndexOperationpublic void releaseLock()
releaseLock in interface org.broadleafcommerce.core.search.service.solr.index.SolrIndexOperationreleaseLock in class org.broadleafcommerce.core.search.service.solr.index.GlobalSolrFullReIndexOperationpublic org.apache.solr.client.solrj.SolrClient getSolrServerForIndexing()
getSolrServerForIndexing in interface org.broadleafcommerce.core.search.service.solr.index.SolrIndexOperationgetSolrServerForIndexing in class org.broadleafcommerce.core.search.service.solr.index.GlobalSolrFullReIndexOperationCopyright © 2020. All rights reserved.