| Package | Description |
|---|---|
| org.broadleafcommerce.core.search.service.solr.indexer |
| Modifier and Type | Method and Description |
|---|---|
static ReindexStateHolder |
ReindexStateHolder.getInstance(String collectionName)
Returns a shared instance of this class or null.
|
static ReindexStateHolder |
ReindexStateHolder.getInstance(String collectionName,
boolean incrementalCommits,
boolean createIfAbsent)
Creates or returns a shared instance of this class associated with the collectionName.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
CatalogSolrIndexUpdateCommandHandlerImpl.afterBackgroundThread(ReindexStateHolder holder,
Catalog catalog,
Site site,
SandBox sandBox)
This executes after to the main execution of the background (page) thread(s).
|
protected void |
CatalogSolrIndexUpdateCommandHandlerImpl.afterPage(List<Long> productIds,
List<Product> products,
List<Locale> locales,
List<IndexField> fields,
ReindexStateHolder holder)
This executes immediately after a page is processed.
|
protected void |
CatalogSolrIndexUpdateCommandHandlerImpl.afterProcess(ReindexStateHolder holder)
Hook point at that is executed at the end of the reindex process.
|
protected void |
CatalogSolrIndexUpdateCommandHandlerImpl.afterReadIdBatch(ReindexStateHolder holder,
Long catalogId,
int batchSize,
Long lastId)
This executes immediately after reading a batch of product IDs for processing in a background thread.
|
protected void |
CatalogSolrIndexUpdateCommandHandlerImpl.afterReadProducts(ReindexStateHolder holder,
List<Long> productIds)
This executes immediately after reading a batch of products.
|
protected void |
CatalogSolrIndexUpdateCommandHandlerImpl.beforeBackgroundThread(ReindexStateHolder holder,
Catalog catalog,
Site site,
SandBox sandBox)
The reindex process, specifically page processing, is executed in background threads.
|
protected void |
CatalogSolrIndexUpdateCommandHandlerImpl.beforePage(List<Long> productIds,
List<Product> products,
List<Locale> locales,
List<IndexField> fields,
ReindexStateHolder holder)
This is executed immediately before a page is processed.
|
protected void |
CatalogSolrIndexUpdateCommandHandlerImpl.beforeProcess(ReindexStateHolder holder)
Hook point that is executed at the beginning of the reindex process.
|
protected void |
CatalogSolrIndexUpdateCommandHandlerImpl.beforeReadIdBatch(ReindexStateHolder holder,
Long catalogId,
int batchSize,
Long lastId)
This executes immediately prior to reading a batch of product IDs for processing in a background thread.
|
protected void |
CatalogSolrIndexUpdateCommandHandlerImpl.beforeReadProducts(ReindexStateHolder holder,
List<Long> productIds)
This executes immediately prior to reading a batch of products.
|
protected void |
CatalogSolrIndexUpdateCommandHandlerImpl.buildIncrementalIndex(List<Long> productIds,
List<Product> products,
ReindexStateHolder holder,
Catalog catalog,
Site site)
Builds an incremental or batch portion of the index.
|
protected List<org.apache.solr.common.SolrInputDocument> |
CatalogSolrIndexUpdateCommandHandlerImpl.buildPage(List<Long> productIds,
List<Product> products,
List<Locale> locales,
List<IndexField> fields,
ReindexStateHolder holder)
Given the arguments, this builds a list of
SolrInputDocuments. |
protected EntityManagerAwareRunnable |
CatalogSolrIndexUpdateCommandHandlerImpl.createBackgroundRunnable(ReindexStateHolder holder,
List<Long> ids,
Semaphore sem,
Long catalogId,
Long siteId,
SandBox sandBox)
This is where most of the heavy lifting happens.
|
protected IdentityOperation<Void,Exception> |
CatalogSolrIndexUpdateCommandHandlerImpl.getIncrementalIndexOperation(ReindexStateHolder holder,
Catalog catalog,
Site site,
List<Long> ids)
Returns an
IdentityOperation who may be executed in the context of a Catalog and/or Site to read products by IDs, and then build the index incrementally. |
protected IdentityOperation<List<Long>,Exception> |
CatalogSolrIndexUpdateCommandHandlerImpl.getReadIdsOperation(ReindexStateHolder holder,
Long catalogId,
Long siteId,
Integer batchSize,
Long lastId)
Provides an
IdentityOperation (function that runs in the context of a Site and/or Catalog) to read batches of IDs. |
protected void |
CatalogSolrIndexUpdateCommandHandlerImpl.incrementalCommit(ReindexStateHolder holder)
Issues incremental commits.
|
protected boolean |
CatalogSolrIndexUpdateCommandHandlerImpl.isReindexSuccessful(ReindexStateHolder holder)
Method to determine whether a full reindex was successful.
|
protected void |
CatalogSolrIndexUpdateCommandHandlerImpl.populateIndex(ReindexStateHolder holder,
Long catalogId,
Long siteId,
SandBox sandbox)
This method populates the index.
|
protected List<Long> |
CatalogSolrIndexUpdateCommandHandlerImpl.readIdBatch(ReindexStateHolder holder,
Long catalogId,
int batchSize,
Long lastId)
Reads a batch of
Product IDs from the DB. |
protected List<Product> |
CatalogSolrIndexUpdateCommandHandlerImpl.readProductsByIds(ReindexStateHolder holder,
List<Long> productIds)
Reads a batch of products by IDs.
|
Copyright © 2020. All rights reserved.