I\'m trying to send elasticserach multi search request via postman as below:
POST - http://localhost:9200/_msearch
content-type : x-www-form-urlencoded
body:
{\"
You can also make your request body be json format and change your Content-Type be application/json, please take a look as below
I have found error for "Expected [START_OBJECT] but found [null]" when I use _msearch API in elasticsearch.
Response of this api
Request parameters and url
Three things are important here:
Body:
Header:
Curl version:
curl -X POST \
http://127.0.0.1:9200/_msearch \
-H 'cache-control: no-cache' \
-H 'content-type: application/x-ndjson' \
-d '{"index":"script","type":"test"}
{"query":{"match_all":{}}}
'