The cURL request needs to be a PUT request, not POST. Thanks for your help.
curl -X PUT -H "Content-type:application/json"
http://<username>:<password>@<ip>:8094/api/index/<index_name>/query -d
'{"query": {"field": "animals", "regexp": ".*cow.*"}}'
The cURL request needs to be a PUT request, not POST. Thanks for your help.
curl -X PUT -H "Content-type:application/json"
http://<username>:<password>@<ip>:8094/api/index/<index_name>/query -d
'{"query": {"field": "animals", "regexp": ".*cow.*"}}'