Interface TypeAheadPostProcessor<T>
-
- Type Parameters:
T
- The query object to be sent to the search engine. This should likely be the proprietary implementation supplied by a library. For SolrJ, for example, this is org.apache.solr.client.solrj.SolrQuery
- All Superinterfaces:
org.springframework.core.Ordered
public interface TypeAheadPostProcessor<T> extends org.springframework.core.Ordered
Interface allowing modification of TypeAhead query results after returning from the search engine.This processor should be consumed in a concrete implementation of
TypeAheadService
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
postProcess(T queryResponse, com.broadleafcommerce.search.api.domain.typeahead.TypeAheadResponse response, com.broadleafcommerce.search.api.domain.typeahead.TypeAheadRequest request, com.broadleafcommerce.search.api.domain.TypeAheadConfiguration typeAheadConfiguration, SearchRequestProperties properties, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Modify the TypeAhead response received from the search engine.
-
-
-
Method Detail
-
postProcess
void postProcess(T queryResponse, com.broadleafcommerce.search.api.domain.typeahead.TypeAheadResponse response, com.broadleafcommerce.search.api.domain.typeahead.TypeAheadRequest request, com.broadleafcommerce.search.api.domain.TypeAheadConfiguration typeAheadConfiguration, SearchRequestProperties properties, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Modify the TypeAhead response received from the search engine.- Parameters:
queryResponse
- the search engine responseresponse
- TypeAhead response to processrequest
-typeAheadConfiguration
- TypeAhead configuration for the queryproperties
-contextInfo
- The context information surrounding sandboxing/multitenant state
-
-