Recommended Pagination Method for Real-time User Requests


#1

I'm looking for a good way to paginate user search requests. I see the scrolling feature but it is explained from the docs:

Scrolling is not intended for real time user requests, but rather for processing large amounts of data
So, what will be recommended ways to paginate real-time user requests? These answers seem a bit outdated.

I know there are ways to filter using timestamps and then use the from/size method, but wouldn't that not take into account deleted documents?

Thanks!


#2

Okay, I think I may have found my solution, as described here, to use Search After: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-search-after.html


(system) #3

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