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:
- Can duplicate results be returned?
- Will it return all the documents that were present before the refresh (excluding any documents that were deleted in the refresh)?
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?
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.