Returns the top specific products for a specific query. The specific product weights are calculated based on user clicks, add-to-carts and purchases and the values are normalized using a linear function.
"topProducts" are sorted by "weight" in descending order.
GET
/v2/querycontext/products/{client_id}?query={query}&lang={lang}&rows={rows} |
Parameter name | Required | Description |
---|---|---|
client_id | Client identifier on the system |
Parameter name | Required | Description | Default |
---|---|---|---|
query | Search term that user did | ||
lang | Language of the query | ||
rows | Number of products to return | 5 |
Type: application/json
[ {"value":"213115", weight:"3"}, {"value":"213149", weight:"1.3"} ] |
Type: application/json
{ "code": 400, "error": "XXX is mandatory" } |
Type: application/json
{ "code": 404, "error": "XXX not found" } |