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 Summary
ConstructorsConstructorDescriptionCatalogSolrIndexUpdateServiceImpl(SolrIndexQueueProvider queueProvider, CatalogSolrIndexCommandHandler commandHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoidperformCachedOperation(SolrIndexCachedOperation.CacheOperation cacheOperation) voidDefault 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.voidrebuildIndex(org.broadleafcommerce.common.site.domain.Catalog catalog) voidrebuildIndex(org.broadleafcommerce.common.site.domain.Site site) Methods inherited from class org.broadleafcommerce.core.search.service.solr.indexer.AbstractSolrIndexUpdateServiceImpl
buildDocument, buildDocument, destroy, getCommandGroup, getQueueOfferTime, getQueuePollTime, isRunning, scheduleCommand, shutdownAll, updateIndex, updateIndexMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.core.search.service.solr.indexer.SolrIndexUpdateService
buildDocument, buildDocument, updateIndex, updateIndex
-
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:
rebuildIndexin interfaceCatalogSolrIndexUpdateService- 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:
rebuildIndexin interfaceCatalogSolrIndexUpdateService- Throws:
org.broadleafcommerce.common.exception.ServiceException
-
rebuildIndex
public void rebuildIndex() throws org.broadleafcommerce.common.exception.ServiceExceptionDescription copied from interface:SolrIndexUpdateServiceDefault 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:
rebuildIndexin interfaceCatalogSolrIndexUpdateService- Specified by:
rebuildIndexin interfaceSolrIndexUpdateService- Overrides:
rebuildIndexin classAbstractSolrIndexUpdateServiceImpl- Throws:
org.broadleafcommerce.common.exception.ServiceException
-
performCachedOperation
public void performCachedOperation(SolrIndexCachedOperation.CacheOperation cacheOperation) throws org.broadleafcommerce.common.exception.ServiceException - Specified by:
performCachedOperationin interfaceCatalogSolrIndexUpdateService- Throws:
org.broadleafcommerce.common.exception.ServiceException
-