Class RecommendationsRequest

java.lang.Object
io.constructor.client.RecommendationsRequest

public class RecommendationsRequest extends Object
Constructor.io Recommendations Request
  • Constructor Details

  • Method Details

    • setPodId

      public void setPodId(String podId)
      Parameters:
      podId - the pod id to set
    • getPodId

      public String getPodId()
      Returns:
      the pod id
    • setTerm

      public void setTerm(String term)
      Parameters:
      term - the term to set (required for query recommendations pods)
    • getTerm

      public String getTerm()
      Returns:
      the term
    • setNumResults

      public void setNumResults(int numResults)
      Parameters:
      numResults - the num results to set
    • getNumResults

      public int getNumResults()
      Returns:
      the num results
    • setItemIds

      public void setItemIds(List<String> itemIds)
      Parameters:
      itemIds - the item id's to set
    • getItemIds

      public List<String> getItemIds()
      Returns:
      the item id's
    • setSection

      public void setSection(String section)
      Parameters:
      section - the section to set
    • getSection

      public String getSection()
      Returns:
      the section
    • setVariationsMap

      public void setVariationsMap(VariationsMap variationsMap)
      Parameters:
      variationsMap - the variationsMap to set
    • getVariationsMap

      public VariationsMap getVariationsMap()
      Returns:
      the variations map
    • setFacets

      public void setFacets(Map<String,List<String>> facets)
      Parameters:
      facets - the facets to set
    • getFacets

      public Map<String,List<String>> getFacets()
      Returns:
      the facets
    • setPreFilterExpression

      public void setPreFilterExpression(String preFilterExpression)
      Parameters:
      preFilterExpression - the faceting expression to scope recommendation results (JSON-encoded query string). Please refer to https://docs.constructor.com/reference/configuration-collections
    • getPreFilterExpression

      public String getPreFilterExpression()
      Returns:
      the prefilter expression