Skip to content

Enable streaming doc fetch added in PR42#45

Merged
rdettai-sk merged 2 commits into
sekoiafrom
enable-streaming-doc-fetch
May 12, 2026
Merged

Enable streaming doc fetch added in PR42#45
rdettai-sk merged 2 commits into
sekoiafrom
enable-streaming-doc-fetch

Conversation

@rdettai-sk
Copy link
Copy Markdown
Collaborator

Description

The GRPC was added in #42 and deployed. We can now use it.

How was this PR tested?

Describe how you tested this PR.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR switches SearchServiceClient::fetch_docs to use the new gRPC server-streaming endpoint (introduced in PR #42) to receive fetched documents in batches, avoiding gRPC message size limits while preserving the existing FetchDocsResponse API.

Changes:

  • Replace unary fetch_docs gRPC call with stream_fetch_docs and aggregate streamed batches into a single FetchDocsResponse.
  • Add TryStreamExt usage to fold the streamed responses into a pre-allocated Vec.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread quickwit/quickwit-search/src/client.rs
Comment thread quickwit/quickwit-search/src/client.rs
Comment on lines +160 to +163
.map_err(|tonic_error| parse_grpc_error(&tonic_error))?
.into_inner()
.map_err(|tonic_error| parse_grpc_error(&tonic_error))
.try_fold(
@rdettai-sk rdettai-sk merged commit 63fa5a2 into sekoia May 12, 2026
3 checks passed
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.

2 participants