public class SolrRESTSearchCatalogEntryViewPriceQueryPostprocessor extends AbstractSolrSearchQueryPostprocessor implements com.ibm.commerce.foundation.server.services.search.query.SearchQueryPostprocessor
Constructor and Description |
---|
SolrRESTSearchCatalogEntryViewPriceQueryPostprocessor(java.lang.String componentId)
Creates an instance of the search query post-processor for a particular component.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<java.lang.String> | applyFieldNamingPattern(java.lang.String origFieldName, java.lang.String currencyCode)
This method will apply field name with specified field naming pattern for example, if the naming pattern is price_currency_contractId, then for price_USD field, it will change to the list of price_USD_contractId.
|
protected java.lang.String | getAppliedContractIdFromPriceField(java.lang.String priceFieldName)
This method will return applied contract for this price field If the field name do not end with contractId, or it is using the old compatible mode(then there is no contractId), return null
|
protected void | initMappingParameters()
initMappingParameters for current processor
|
void | invoke(SelectionCriteria selectionCriteria, java.lang.Object... queryResponseObjects)
Invoke the search query post-processor, given the SelectionCriteria object, to perform additional tasks right after the search query response has been returned from the search engine.
|
public SolrRESTSearchCatalogEntryViewPriceQueryPostprocessor(java.lang.String componentId)
public void invoke(SelectionCriteria selectionCriteria, java.lang.Object... queryResponseObjects) throws java.lang.RuntimeException
protected void initMappingParameters()
protected java.util.List<java.lang.String> applyFieldNamingPattern(java.lang.String origFieldName, java.lang.String currencyCode)
protected java.lang.String getAppliedContractIdFromPriceField(java.lang.String priceFieldName)