Editorial question19.4K views1,562 votes0 answers3,955 following
AI-generatedPagination Limits: Handling Duplicate Sort Values in search_after
Goal: Ensure continuous pagination using search_after when the primary sort field may contain duplicate values across documents, without encountering errors that halt scrolling. Constraint/uncertainty: Documentation states that the sort field must be unique per document; duplicates cause an error, but it is unclear whether Elasticsearch automatically incorpo