can we fetch more than 10000 records from open distro elasticsearch through java ?
I tried with normal basic sql query :
select id, name from employee order by id desc limit 10, 10;
if I try to fetch data with the above query it works fine but it's range should be under 10k. If I change limit (from, size) ie limit 10000, 10 then it does not return any value.
Yes, you can, the Default value of
index.max_result_window
which controls this limit is 10K, hence you are not getting the result, please read the desc of this setting in official ES docsWhen you give from and size as 10k,10, it crosses the limit of from+size of 10k. but the good news is that its a dynamic setting and can be changed without restarting the ES nodes:
PUT http://{{esHost}}:{{port}}/{{index}}/_settings
Check if it's updated in the index settings
GET http://{{eshost}}:{{port}}/{{index}}/_settings