Interface RecommendationProvider
- All Known Implementing Classes:
ExternalRecommendationProvider
public interface RecommendationProvider
Service to interact with Recommendatino service to retrieve recommendations for query boosting.
-
Method Summary
Modifier and TypeMethodDescriptionreadRecommendationsByCustomer(com.broadleafcommerce.search.api.domain.CustomerContext customerContext, int numberOfRecommendations, String recommendationType, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads a list ofSearchRecommendationsfor the givenuserId.
-
Method Details
-
readRecommendationsByCustomer
SearchRecommendation readRecommendationsByCustomer(com.broadleafcommerce.search.api.domain.CustomerContext customerContext, int numberOfRecommendations, String recommendationType, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads a list ofSearchRecommendationsfor the givenuserId.- Parameters:
customerId- the customer ID to query onnumberOfRecommendations- the number of recommendations to fetchcontextInfo- context information around sandbox and multitenant state- Returns:
- A list of search recommendations
-