How can I specify size unlimited in Curl command?

Currently, when we write search query (match all) it will return first 10 hits
but I want to print all records but in query I can specify size till 10,000 how can set size =unlimited.

Here you go:
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html

You can set that 10000 max.

Thanks,
Bhavya

If you want to retrieve all results, I would recommend creating a script utilising the scroll API.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.