I'm trying to collate my queries into a BODY JSON object, and then firing
that object via a GET call.
But, the REST utilities I'm using don't like supporting a BODY for GET
calls. In fact, Roy Fielding has recommended against it:
The elasticsearch examples all use -d, with the JSON in a string. But, the
man page for CURL states that -d "sends the specified data in a POST
So, it appears the use of -d isn't compliant with the spec for CURL.
Am I missing something here?
Whilst exploring the ES REST-API, is there a tidy way of collating a query
as JSON and then passing that into the GET?