public class MultiTenantSolrIndexServiceImpl extends com.broadleafcommerce.enterprise.workflow.service.search.EnterpriseSolrIndexServiceImpl implements MultiTenantSolrIndexService
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
protected MultiTenantProductDao |
mtProductDao |
protected MultiTenantService |
multiTenantService |
protected org.broadleafcommerce.common.site.service.SiteService |
siteService |
sandboxService, workflowIndexServicecatalogService, commit, errorOnConcurrentReIndex, extensionManager, fieldDao, indexFieldDao, localeService, pageSize, productDao, sandBoxHelper, searchFacetDao, shs, softCommit, solrConfiguration, solrIndexDao, transactionManager, waitFlush, waitSearcher| Constructor and Description |
|---|
MultiTenantSolrIndexServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildCatalogIndex(org.broadleafcommerce.common.site.domain.Catalog catalog) |
void |
buildIndex() |
protected void |
deleteAllCatalogDocuments(org.broadleafcommerce.common.site.domain.Catalog catalog) |
void |
executeSolrIndexOperation(org.broadleafcommerce.core.search.service.solr.index.SolrIndexOperation operation,
org.broadleafcommerce.common.site.domain.Catalog catalog,
org.broadleafcommerce.common.site.domain.Site site) |
protected List<org.broadleafcommerce.common.site.domain.Catalog> |
findAllCatalogs()
We use this to find all the catalogs regardless of site.
|
protected List<org.broadleafcommerce.common.site.domain.Catalog> |
findAllCatalogs(boolean excludeArchived) |
protected org.broadleafcommerce.core.search.service.solr.index.SolrIndexOperation |
getCatalogIndexOperation() |
org.broadleafcommerce.core.search.service.solr.index.SolrIndexOperation |
getReindexOperation() |
protected org.broadleafcommerce.core.search.service.solr.index.SolrIndexOperation |
getSiteReindexOperation() |
protected org.broadleafcommerce.core.search.service.solr.index.SolrIndexOperation |
getSiteSandBoxIndexOperation(org.broadleafcommerce.common.sandbox.domain.SandBox sandBox) |
protected void |
postBuildIndexForCatalog(org.broadleafcommerce.common.site.domain.Catalog catalog) |
protected void |
preBuildIndexForCatalog(org.broadleafcommerce.common.site.domain.Catalog catalog) |
void |
rebuildCatalogIndex(org.broadleafcommerce.common.site.domain.Catalog catalog)
When a new Catalog is provisioned as a synced copy, you will want to create a Solr index for that catalog since all
of the catalog items are deep-copied.
|
void |
rebuildIndex() |
void |
rebuildSiteIndex(org.broadleafcommerce.common.site.domain.Site site)
This method will build the index for the given site if site collections are enabled.
|
getSandBoxIndexOperation, getWorkflowIndexService, postBuildIndex, preBuildIndexaddDocuments, attachAdditionalDocumentFields, attachBasicDocumentFields, attachIndexableDocumentFields, buildDocument, buildFullCategoryHierarchy, buildIncrementalIndex, buildIncrementalIndex, buildIncrementalIndex, buildPageNumberMessage, commit, commit, commit, commit, convertDisplayOrderToLong, convertToMappedProperty, countIndexableItems, deleteAllDocuments, deleteAllDocuments, deleteAllDocuments, deleteAllNamespaceDocuments, deleteAllNamespaceDocuments, deleteAllReindexCoreDocuments, deleteByQuery, executeSolrIndexOperation, getAllLocales, getPropertyValues, getTotalPageCount, logDeleteQuery, logDocuments, optimizeIndex, optimizeIndex, performCachedOperation, readAllActiveIndexables, restoreState, saveStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSandBoxIndexOperation, getWorkflowIndexServiceaddDocuments, attachIndexableDocumentFields, buildDocument, buildIncrementalIndex, buildIncrementalIndex, commit, commit, commit, commit, deleteAllDocuments, deleteAllDocuments, deleteAllNamespaceDocuments, deleteAllNamespaceDocuments, deleteByQuery, executeSolrIndexOperation, getAllLocales, logDeleteQuery, logDocuments, optimizeIndex, optimizeIndex, performCachedOperation, postBuildIndex, preBuildIndex, restoreState, saveStateprotected org.broadleafcommerce.common.site.service.SiteService siteService
protected MultiTenantService multiTenantService
protected MultiTenantProductDao mtProductDao
protected javax.persistence.EntityManager em
public void rebuildCatalogIndex(org.broadleafcommerce.common.site.domain.Catalog catalog)
throws org.broadleafcommerce.common.exception.ServiceException,
IOException
MultiTenantSolrIndexServiceWhen a new Catalog is provisioned as a synced copy, you will want to create a Solr index for that catalog since all of the catalog items are deep-copied.
This method will build the index for the new catalog directly on the primary core. This will not create duplicate documents, as all documents for the given catalog are deleted prior to indexing
rebuildCatalogIndex in interface MultiTenantSolrIndexServiceorg.broadleafcommerce.common.exception.ServiceExceptionIOExceptionprotected void preBuildIndexForCatalog(org.broadleafcommerce.common.site.domain.Catalog catalog)
throws org.broadleafcommerce.common.exception.ServiceException
org.broadleafcommerce.common.exception.ServiceExceptionprotected void deleteAllCatalogDocuments(org.broadleafcommerce.common.site.domain.Catalog catalog)
throws org.broadleafcommerce.common.exception.ServiceException
org.broadleafcommerce.common.exception.ServiceExceptionprotected org.broadleafcommerce.core.search.service.solr.index.SolrIndexOperation getCatalogIndexOperation()
protected void buildCatalogIndex(org.broadleafcommerce.common.site.domain.Catalog catalog)
throws org.broadleafcommerce.common.exception.ServiceException
org.broadleafcommerce.common.exception.ServiceExceptionprotected void postBuildIndexForCatalog(org.broadleafcommerce.common.site.domain.Catalog catalog)
throws IOException,
org.broadleafcommerce.common.exception.ServiceException
IOExceptionorg.broadleafcommerce.common.exception.ServiceExceptionpublic void rebuildIndex()
throws org.broadleafcommerce.common.exception.ServiceException,
IOException
rebuildIndex in interface org.broadleafcommerce.core.search.service.solr.index.SolrIndexServicerebuildIndex in class org.broadleafcommerce.core.search.service.solr.index.SolrIndexServiceImplorg.broadleafcommerce.common.exception.ServiceExceptionIOExceptionpublic void rebuildSiteIndex(org.broadleafcommerce.common.site.domain.Site site)
throws org.broadleafcommerce.common.exception.ServiceException,
IOException
MultiTenantSolrIndexServicerebuildSiteIndex in interface MultiTenantSolrIndexServiceorg.broadleafcommerce.common.exception.ServiceExceptionIOExceptionprotected List<org.broadleafcommerce.common.site.domain.Catalog> findAllCatalogs()
protected List<org.broadleafcommerce.common.site.domain.Catalog> findAllCatalogs(boolean excludeArchived)
public void buildIndex()
throws org.broadleafcommerce.common.exception.ServiceException,
IOException
buildIndex in interface org.broadleafcommerce.core.search.service.solr.index.SolrIndexServicebuildIndex in class com.broadleafcommerce.enterprise.workflow.service.search.EnterpriseSolrIndexServiceImplorg.broadleafcommerce.common.exception.ServiceExceptionIOExceptionpublic void executeSolrIndexOperation(org.broadleafcommerce.core.search.service.solr.index.SolrIndexOperation operation,
org.broadleafcommerce.common.site.domain.Catalog catalog,
org.broadleafcommerce.common.site.domain.Site site)
throws org.broadleafcommerce.common.exception.ServiceException
executeSolrIndexOperation in interface MultiTenantSolrIndexServiceorg.broadleafcommerce.common.exception.ServiceExceptionpublic org.broadleafcommerce.core.search.service.solr.index.SolrIndexOperation getReindexOperation()
getReindexOperation in interface org.broadleafcommerce.core.search.service.solr.index.SolrIndexServicegetReindexOperation in class org.broadleafcommerce.core.search.service.solr.index.SolrIndexServiceImplprotected org.broadleafcommerce.core.search.service.solr.index.SolrIndexOperation getSiteReindexOperation()
protected org.broadleafcommerce.core.search.service.solr.index.SolrIndexOperation getSiteSandBoxIndexOperation(org.broadleafcommerce.common.sandbox.domain.SandBox sandBox)
Copyright © 2020. All rights reserved.