I have tried the following two ways to scroll the results of an elasticsearch multisearch query.
Approach #1
curl -XGET "http://localhost:9200/indexname/_msearch?scroll=10m" -d'
{ "type": "parent" }
{"query": {"match_all": {}}}
{ "type": "child" }
{"query": {"match_all": {}}}
'
Approach #2
curl -XGET "http://localhost:9200/indexname/_msearch" -d'
{ "type": "parent", "scroll": "10m" }
{"query": {"match_all": {}}}
{ "type": "child", "scroll": "10m" }
{"query": {"match_all": {}}}
'
Both approaches don't seem to work, since they don't return a scroll ID in the response. What can I do? What am I doing wrong? Thanks in advance.