Hey,
I want to page through my search results by using the parameters from
and size
(no scrolling or search after API with PIT involved).
I don't care about the sort order of the whole result set. Therefore, I sort by _doc
because I read here that this is the most efficient way if the order doesn't matter.
However, I wonder about the consistency during paging through the result set.
Is the order consistent during paging if the following conditions are met?
- The result set of the search does not change during paging
- However, other documents, that are not part of the result set, might change during paging
I searched for the question on the internet but did not find any satisfying answer to it.
Maybe one of you can answer this question.
Thanks in advance!
Regards,
Daniel