How to scroll back in Elasticsearch Search Scroll API

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.

In the future scroll will probably replaced by another feature (search after) which will allow to have a frozen view of the index in which you can navigate backward and forward. But it's not yet there.

How many total records (or pages) do you want your user to be able to navigate?

1 Like