I am working on a website, where I need to search through an index with millions of documents, and be able to display them as pages of 500 documents. With pagination we need to support the jump to a random page.
I looked at Elastic Search documentation and it says we should use search_after for deep pagination. Documentation till 7.2 also says
search_after is not a solution to jump freely to a random page but rather to scroll many queries in parallel. It is very similar to the scroll API but unlike it, the search_after parameter is stateless, it is always resolved against the latest version of the searcher. For this reason the sort order may change during a walk depending on the updates and deletes of your index.
Does that mean Elastic Search from version 7.3 onwards support jump to random page with search_after ?
Latest version’s documentation also says that scroll is not recommended.
Then what options do I have for deep pagination along with jump to random page?
Thanks and regards,