This report returns the distribution of a given query within the group of pivots selected.
Report ID: FilterDistribution
Input parameters (see common parameters)
Parameter name | Type | Required | Description | Default |
---|---|---|---|---|
offset | int | The number of results to omit (from the start of the result set) | 0 | |
rows | int | Number of results to return | 50 | |
evol | bool | Calculate the evolution of certain fields in the request | False | |
terms | str | Query to search | None | |
top_k | int | Max results to return by pivot | 10 | |
type | int | Type of queries to return (0: all, 1: queries w/results, 2: queries wo/results) | 0 | |
pivots | list[str] | List of pivots to use in the request, separated by comma | Filters in config |
Responses
200 - successful information retrieve
Type: application/json
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "data": [ { "filter": "lang", "distribution": [ { "value": "es", "count": 4 }, { "value": "pt", "count": 2 }, { "value": "es-mx", "count": 2 } ] } ], "params": { "site_id": "sample", "start_date": 1527897600000, "end_date": 1527984000000, "filters": [], "offset": 0, "rows": 50, "evol": false, "top_k": 10, "pivots": [ "lang" ], "terms": "camisa", "terms_hash": 8926468711736637978, "type": 0 } } |
...