Class ProductCatalogOnlyPricingStrategyDocumentContributor
- java.lang.Object
-
- com.broadleafcommerce.search.index.catalog.solr.document.ProductCatalogOnlyPricingStrategyDocumentContributor
-
- All Implemented Interfaces:
com.broadleafcommerce.search.index.core.document.DocumentBuilderContributor<org.apache.solr.common.SolrInputDocument>
public class ProductCatalogOnlyPricingStrategyDocumentContributor extends Object implements com.broadleafcommerce.search.index.core.document.DocumentBuilderContributor<org.apache.solr.common.SolrInputDocument>
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_SKU_PATH
static String
MIN_VARIANT_PRICE_PATH
static String
PRICE_FIELD
static String
SKU_PATH
-
Constructor Summary
Constructors Constructor Description ProductCatalogOnlyPricingStrategyDocumentContributor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canHandle(com.broadleafcommerce.search.api.domain.Indexable<?> indexable)
void
contributeInternal(com.broadleafcommerce.search.api.domain.Indexable<?> indexable, org.apache.solr.common.SolrInputDocument document, com.jayway.jsonpath.DocumentContext context, List<com.broadleafcommerce.search.api.domain.FieldDefinition> searchFields)
protected String
getLowestVariantPrice(com.jayway.jsonpath.DocumentContext context)
protected String
readDefaultSkuPrice(String sku, com.jayway.jsonpath.DocumentContext context)
protected String
readSku(com.jayway.jsonpath.DocumentContext context)
-
-
-
Field Detail
-
MIN_VARIANT_PRICE_PATH
public static final String MIN_VARIANT_PRICE_PATH
- See Also:
- Constant Field Values
-
PRICE_FIELD
public static final String PRICE_FIELD
- See Also:
- Constant Field Values
-
SKU_PATH
public static final String SKU_PATH
- See Also:
- Constant Field Values
-
DEFAULT_SKU_PATH
public static final String DEFAULT_SKU_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
contributeInternal
public void contributeInternal(com.broadleafcommerce.search.api.domain.Indexable<?> indexable, org.apache.solr.common.SolrInputDocument document, com.jayway.jsonpath.DocumentContext context, List<com.broadleafcommerce.search.api.domain.FieldDefinition> searchFields) throws com.broadleafcommerce.search.api.SearchIndexException
- Specified by:
contributeInternal
in interfacecom.broadleafcommerce.search.index.core.document.DocumentBuilderContributor<org.apache.solr.common.SolrInputDocument>
- Throws:
com.broadleafcommerce.search.api.SearchIndexException
-
readDefaultSkuPrice
@Nullable protected String readDefaultSkuPrice(@Nullable String sku, com.jayway.jsonpath.DocumentContext context)
-
getLowestVariantPrice
@Nullable protected String getLowestVariantPrice(com.jayway.jsonpath.DocumentContext context)
-
canHandle
public boolean canHandle(com.broadleafcommerce.search.api.domain.Indexable<?> indexable)
- Specified by:
canHandle
in interfacecom.broadleafcommerce.search.index.core.document.DocumentBuilderContributor<org.apache.solr.common.SolrInputDocument>
-
readSku
protected String readSku(com.jayway.jsonpath.DocumentContext context)
-
-