Skip to content

Upgrade to paginated serverless ListCollections and KeywordIndex builder - #176

Merged
generall merged 1 commit into
devfrom
upgrade-serverless-client
Sep 7, 2026
Merged

Upgrade to paginated serverless ListCollections and KeywordIndex builder#176
generall merged 1 commit into
devfrom
upgrade-serverless-client

Conversation

@generall

@generall generall commented Sep 7, 2026

Copy link
Copy Markdown
Member

Summary

Bumps the locked qdrant-client (git dev) from b6bacf7 to 31b5f12, which pulls in qdrant/rust-client#296: paginated serverless ListCollections plus keyword prefix and full-text analysis options.

Adapts bfb to the two API changes that affect it:

  • list_collections is paginated. list_matching now requests 100 collections per page and follows next_offset_token until exhausted. Before this, the server default of 20 would have silently truncated bfb serverless list / clear / registry bootstrap in spaces with more collections.
  • KeywordIndex is a struct with a builder. The upload YAML's prefix: true on keyword fields is now forwarded to the serverless index via KeywordIndex::new().with_prefix(). Previously the flag was accepted but dropped in serverless mode.

Not wired up: the new TextIndex options (ascii_folding, stopwords, stemmer). bfb's payload config has no fields for these yet, so they stay unset (service default).

Test plan

  • cargo clippy --all-targets clean
  • cargo test — 177 passed, including a new keyword_prefix_flag_is_forwarded test in serverless/convert.rs
  • Manual: bfb serverless list against a space with >20 collections returns all of them

🤖 Generated with Claude Code

rust-client dev (#296) changed the serverless API: list_collections now
takes a ListCollections request and returns a page with next_offset_token,
and KeywordIndex became a struct with an optional prefix-matching flag.

- list_matching walks all pages (100 per request) instead of assuming a
  single unpaginated response, so spaces with >20 collections are fully
  listed and cleared.
- to_serverless_config forwards the upload YAML's keyword `prefix: true`
  onto the serverless index, which the previous unit-struct could not
  express.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@generall
generall merged commit fc6632e into dev Sep 7, 2026
3 checks passed
generall added a commit that referenced this pull request Sep 7, 2026
…der (#176)

rust-client dev (#296) changed the serverless API: list_collections now
takes a ListCollections request and returns a page with next_offset_token,
and KeywordIndex became a struct with an optional prefix-matching flag.

- list_matching walks all pages (100 per request) instead of assuming a
  single unpaginated response, so spaces with >20 collections are fully
  listed and cleared.
- to_serverless_config forwards the upload YAML's keyword `prefix: true`
  onto the serverless index, which the previous unit-struct could not
  express.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
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