I'm trying to create a Slate application which uses the compass search
endpoint.
I've managed to connect to the endpoint trough postman just fine using <host>/foundry-search/api/compass/v0/search
, and get the desired results.
However in Slate I'm unable to get a 200 response with the same query, using search
in the path, example:
{
"path": "search",
"method": "POST",
"bodyJson": {
"query": {},
"limit": 5
},
"extractors": {
"results": "$"
},
"headers": {
"Content-Type": "application/json",
"Content-Length": 64
}
}
Other compass endpoints work fine, its just the search one I cant manage to work out. For this query in particular I get 500, with errorCode INTERNAL
. Is there any magic trick one needs to do for search?