Not sure which query you have executed, but to get scroll id you need to provide scroll parameter with time value.
e.g.
GET index1/_search?scroll=1m
This will return search results with scroll id and scroll context will stay alive for 1 minute.
This might be useful for scroll API: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html
Hope this helps!
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.