Skip to content

Search after support#264

Merged
stefangutica merged 79 commits into
mainfrom
search-after-support
Jun 17, 2026
Merged

Search after support#264
stefangutica merged 79 commits into
mainfrom
search-after-support

Conversation

@stefangutica

@stefangutica stefangutica commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Reasoning

  • Simplifies pagination by using a searchAfter cursor directly on the returned documents.

Proposed Changes

  • Return searchAfter as a base64-encoded cursor on each item.
  • Decode searchAfter back into an array before building the Elasticsearch search_after query.

How to test

  • Call a sorted list endpoint and verify each item includes searchAfter.
  • Pass the returned searchAfter value back into the next request and confirm the next page is returned.

@stefangutica stefangutica merged commit 3573815 into main Jun 17, 2026
2 checks passed
@stefangutica stefangutica deleted the search-after-support branch June 17, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants