How to get a page from elasticsearch where from parameter is greater than 10000

Hey dadoonet,

Thanks for the reply, I tried increasing limit but it's slow down my cluster. Is there is any other way of getting these records?

We have a web application where we store users data in elasticsearch,
we have a listing page which shows all the records that the user has created with default pagination size of 100. he can increase pagination limit to 500 or 1000

So, if a user has created data more than 10000 which is quite usual in my case, the pages created will be greater than 100 (with pagination size of 100). To view, the previous record user can go to any page or can even click on the last page.

The user wouldn't click on page 1020 but can click on page 21 and if the page size is selected to 500, the elasticsearch will again throw an error.

So as you can see in pagination(image) user can click on any page even on page 3432 the last page.