How to query and get all records using elasticsearch in POST call without scroll event?

Need to get all records in POST request without scroll .

Welcome.

You can use size and from parameters to display by default up to 10000 records to your users. If you want to change this limit, you can change index.max_result_window setting but be aware of the consequences (ie memory).
You can use the search after feature to do deep pagination.
You can use the Scroll API if you want to extract a resultset to be consumed by another tool later.

Thanks for the quick response,
without giving static value as 10k ,can we do any other....
In my work no scroll and search used..
The only thing i need to get all records from index

You can't.

I tried to give size as 10k, now its getting all records.
what my opinion is without statically we need to do.
You said no option.
Thanks David , I will made the changes with size as 10K

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