Does sorting by _doc remain consistent during paging


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?

  1. The result set of the search does not change during paging
  2. 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!


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