Package io.constructor.client
Class RecommendationsRequest
java.lang.Object
io.constructor.client.RecommendationsRequest
Constructor.io Recommendations Request
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getPodId()
getTerm()
void
void
setItemIds
(List<String> itemIds) void
setNumResults
(int numResults) void
void
setPreFilterExpression
(String preFilterExpression) void
setSection
(String section) void
void
setVariationsMap
(VariationsMap variationsMap)
-
Constructor Details
-
RecommendationsRequest
Creates a recommendations request- Parameters:
podId
- the pod id to retrieve results from- Throws:
IllegalArgumentException
-
-
Method Details
-
setPodId
- Parameters:
podId
- the pod id to set
-
getPodId
- Returns:
- the pod id
-
setTerm
- Parameters:
term
- the term to set (required for query recommendations pods)
-
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
- Parameters:
itemIds
- the item id's to set
-
getItemIds
- Returns:
- the item id's
-
setSection
- Parameters:
section
- the section to set
-
getSection
- Returns:
- the section
-
setVariationsMap
- Parameters:
variationsMap
- the variationsMap to set
-
getVariationsMap
- Returns:
- the variations map
-
setFacets
- Parameters:
facets
- the facets to set
-
getFacets
- Returns:
- the facets
-
setPreFilterExpression
- Parameters:
preFilterExpression
- the faceting expression to scope recommendation results (JSON-encoded query string). Please refer to https://docs.constructor.com/reference/configuration-collections
-
getPreFilterExpression
- Returns:
- the prefilter expression
-