Use Search After to access paginated result search over max_result_window limit
To page through a larger set of results, you can use the search API's from and size parameters. The from parameter defines the number of hits to skip, defaulting to 0. The size parameter is the maximum number of hits to return. Together, these two parameters define a page of results.
By default, you cannot use from and size to page through more than 10,000 hits. This limit is a safeguard set by the index.max_result_window index setting. If you need to page through more than 10,000 hits, use the search_after parameter instead.
Use
Search After
to access paginated result search overmax_result_window
limithttps://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#search-after