Answer the question
In order to leave comments, you need to log in
How to implement pagination on elasticsearch via scroll/slice?
Let's say you need to remake the classic pagination through size / from to scroll. At the output, have a page rewind with a list of the number of pages:
1, 2, 3 ... 100500
I.e. the user or the search engine can immediately go to page 100499 from the first page.
From the documentation, I understood that scroll creates, as it were, a snapshot of the issue, and through slice it is somehow possible to move along this snapshot. For slice, the id and max parameters are written in the documentation, I don’t really understand what it is, please explain.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question