Pagenation over 10,000 documents

I'm implementing a pagenation with an ElasticSearch over 10,000 documents.
It is possible to bring the search results before and after the search by after_search.
But I would like to create a function to bring from a specific point like from - to usage under 10,000 documents.

Is there any way I can refer to it?

Thanks

Not sure I understand the problem. If you have less than 10000 documents, you can use:

  • the 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).
  • the search after feature to do deep pagination.
  • the Scroll API if you want to extract a resultset to be consumed by another tool later.

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