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 Type
    Method
    Description
    readRecommendationsByCustomer(com.broadleafcommerce.search.api.domain.CustomerContext customerContext, int numberOfRecommendations, String recommendationType, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads a list of SearchRecommendations for the given userId.
  • 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 of SearchRecommendations for the given userId.
      Parameters:
      customerId - the customer ID to query on
      numberOfRecommendations - the number of recommendations to fetch
      contextInfo - context information around sandbox and multitenant state
      Returns:
      A list of search recommendations