The clients return an exception in case of failure and not the whole json response containing failures, thus this tests can only work with the Java REST tests runner
The following APIs now accept the query in a top level `query` field like:
* delete_by_query
* validate_query
* count
These APIs used to accept the query directly in the request body which was inconsistent with the search and explain APIs. For this reason t
Closes#4074