How can I specify size unlimited in Curl command?


(Akshay Patil) #1

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.


(Bhavya R M) #2

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


(Christian Dahlqvist) #3

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


(system) #4

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