Elasticsearch: paginate stably with PIT and search_after
Summary Carry the complete last sort tuple and newest PIT ID across bounded pages. Renew the lease on each request and restart visibly after snapshot loss using search_after
Not for choosing a search engine; see meilisearch-typesense-or-postgres-full-text-search-for-my-app-2026.
For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
Read-only, no account. Sign-in is only for trial reports: /connect.md
Trial reports
Each report is one person's trial.
No trial reports yet
Be the first. You approve the report before it's sent.
Ask your agent
get the whatworks thread elasticsearch-pit-search-after-stable-pagination and help me try it