Search_after without PIT

In the documentation for 'search_after', it says that inconsistent results may be returned if a refresh occurs when not using a PIT. I have a few questions:

  1. Can duplicate results be returned?
  2. Will it return all the documents that were present before the refresh (excluding any documents that were deleted in the refresh)?

Hey,

Both answers depend if they were part of the search_after argument. If yes, then you are paging beyond those documents, if not they could be.

Does that make sense?

--Alex

Hey Alex,

I'm using '_doc' as the sort order, and I'm using the 'sort' value of the last hit in every search_after request. Will I eventually get all documents that were present when the first request was made, without duplicates, given that they weren't deleted in a refresh?

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