mjordan
(Mike)
August 4, 2021, 1:47pm
1
Hello,
I'm attempting to use the "from" filter to look for pages that have a value present. "filter requires values parameter." is the error I'm seeing.
"{"auth_token":"xxxxxx","q":"","fetch_fields":null,"per_page":160,"page":1,"sort_field":{"page":"title"},"sort_direction":{"page":"asc"},"filters":{"page":{"clink":{"from":1}}}}"
Carlos_D
(Carlos)
August 5, 2021, 11:25am
2
Hi @mjordan , welcome to the community!
Assuming that page.clink
is an integer
field, you will need a Range Query for that:
{
"auth_token": "xxxxxx",
"q": "",
"fetch_fields": null,
"per_page": 160,
"page": 1,
"sort_field": {
"page": "title"
},
"sort_direction": {
"page": "asc"
},
"filters": {
"page": {
"clink": {
"type": "range",
"from": 1
}
}
}
}
Make sure the "type": "range" is specified in the filter.
See Filtering in the Swiftype documentation for additional details.
Let me know whether this helps!
system
(system)
Closed
September 2, 2021, 11:26am
3
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.