I am using elastic search as a database which has millions of records. I am using the below code to retrieve the data but it is not giving me complete data.
response = requests.get(http://localhost:9200/cityindex/_search?q=:&size=10000)
This is giving me only 10000 records.
when I am extending the size to the size of doc count(which is 784234) it's throwing an error.
'Result window is too large, from + size must be less than or equal to: [10000] but was [100000]. See the scroll API for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level setting.'}]
Context what I want to do. I want to extract all the data of a particular index and then do the analysis on that(I am looking to get the whole data in JSON format). I am using python for my project. Can someone please help me with this?