Class CatalogSolrIndexUpdateServiceImpl

java.lang.Object
org.broadleafcommerce.core.search.service.solr.indexer.AbstractSolrIndexUpdateServiceImpl
org.broadleafcommerce.core.search.service.solr.indexer.CatalogSolrIndexUpdateServiceImpl
All Implemented Interfaces:
CatalogSolrIndexUpdateService, SolrIndexUpdateService, org.springframework.beans.factory.DisposableBean

@Service("blCatalogSolrIndexUpdateService") public class CatalogSolrIndexUpdateServiceImpl extends AbstractSolrIndexUpdateServiceImpl implements CatalogSolrIndexUpdateService
Command service for issuing (queuing) Catalog (re)index commands.
Author:
Kelly Tisdell
  • Constructor Details

    • CatalogSolrIndexUpdateServiceImpl

      @Autowired public CatalogSolrIndexUpdateServiceImpl(@Qualifier("blSolrIndexQueueProvider") SolrIndexQueueProvider queueProvider, @Qualifier("blCatalogSolrUpdateCommandHandler") CatalogSolrIndexCommandHandler commandHandler)
  • Method Details

    • rebuildIndex

      public void rebuildIndex(org.broadleafcommerce.common.site.domain.Catalog catalog) throws org.broadleafcommerce.common.exception.ServiceException
      Specified by:
      rebuildIndex in interface CatalogSolrIndexUpdateService
      Throws:
      org.broadleafcommerce.common.exception.ServiceException
    • rebuildIndex

      public void rebuildIndex(org.broadleafcommerce.common.site.domain.Site site) throws org.broadleafcommerce.common.exception.ServiceException
      Specified by:
      rebuildIndex in interface CatalogSolrIndexUpdateService
      Throws:
      org.broadleafcommerce.common.exception.ServiceException
    • rebuildIndex

      public void rebuildIndex() throws org.broadleafcommerce.common.exception.ServiceException
      Description copied from interface: SolrIndexUpdateService
      Default behavior is to truncate the background collection (offline index), populate it with documents, commit, and then swap (re-alias) so that it becomes the foreground collection and the foreground collection becomes the background.
      Specified by:
      rebuildIndex in interface CatalogSolrIndexUpdateService
      Specified by:
      rebuildIndex in interface SolrIndexUpdateService
      Overrides:
      rebuildIndex in class AbstractSolrIndexUpdateServiceImpl
      Throws:
      org.broadleafcommerce.common.exception.ServiceException
    • performCachedOperation

      public void performCachedOperation(SolrIndexCachedOperation.CacheOperation cacheOperation) throws org.broadleafcommerce.common.exception.ServiceException
      Specified by:
      performCachedOperation in interface CatalogSolrIndexUpdateService
      Throws:
      org.broadleafcommerce.common.exception.ServiceException