Skip to content

Search scroll API#185

Merged
tomtaylor merged 2 commits into
mainfrom
search-scroll
May 20, 2026
Merged

Search scroll API#185
tomtaylor merged 2 commits into
mainfrom
search-scroll

Conversation

@tomtaylor

Copy link
Copy Markdown
Collaborator

Implemented low-level Snap.Search.scroll and Snap.Search.clear_scroll functions, along with a higher level Snap.Scroll.stream API which returns a stream of hits from query, until the scroll window is exhausted.

@tomtaylor tomtaylor mentioned this pull request May 19, 2026
tomtaylor and others added 2 commits May 19, 2026 15:43
Wrap the scroll continuation and clear endpoints. Both are global on
the cluster, so the URL is not index-namespaced; the scroll_id already
encodes the underlying shard context.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
A lazy Stream wrapper over Search.scroll/6 and Search.clear_scroll/5
that yields Snap.Hit structs across scroll batches, clearing the cursor
when the stream terminates (including early halts).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@tomtaylor tomtaylor merged commit e6e6596 into main May 20, 2026
8 checks passed
@tomtaylor tomtaylor deleted the search-scroll branch May 20, 2026 09:33
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.

1 participant