getSearchBody #
Available since 2.11.0
Returns the search body.
In the HTTP protocol, the search body will be extracted depending on the verb:
GET
: extract thesearchBody
query string argument and parse itPOST
: return the request body
Typically the search body contains keywords used by Kuzzle to perform queries like query
, sort
, aggregations
etc.
Arguments #
getSearchBody (): JSONObject
Example #
const searchBody = request.getSearchBody();
Edit this page on Github(opens new window)