vector-store: BM25 full-text search HTTP endpoint#471
Merged
ewienik merged 1 commit intoJun 10, 2026
Conversation
04197e9 to
c5cc093
Compare
There was a problem hiding this comment.
Pull request overview
Adds an HTTP API surface (types + routing + OpenAPI spec) for a planned full-text search (BM25) capability in the vector-store service.
Changes:
- Registers a new POST endpoint:
/api/v1/indexes/{keyspace}/{index}/bm25(currently returns 501 Not Implemented). - Introduces request/response schemas for BM25 search in the
httpapicrate. - Updates the checked-in OpenAPI spec (
api/openapi.json) to include the new endpoint and schemas.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
crates/vector-store/src/httproutes.rs |
Adds router registration and the (stub) handler + OpenAPI annotations for the BM25 endpoint. |
crates/httpapi/src/lib.rs |
Adds PostIndexBm25Request / PostIndexBm25Response types for the new endpoint. |
api/openapi.json |
Adds the new /bm25 path and component schemas to the published OpenAPI document. |
m-szymon
added a commit
to m-szymon/scylladb
that referenced
this pull request
Jun 5, 2026
ScyllaDB needs to support full-text search queries through the vector store service. This adds the client-side BM25 endpoint so ScyllaDB can request ranked full-text search results from the vector store, alongside the existing ANN (approximate nearest neighbor) endpoint. Tests are added mirroring the ann() test suite. The test infrastructure is extended with a mock server mode and a lightweight schema builder helper to avoid spinning up a full CQL environment where it is not needed. Fixes SCYLLADB-1511 Ref scylladb/vector-store#471
c5cc093 to
d935e3b
Compare
dd96def to
93a5325
Compare
93a5325 to
ae19911
Compare
ae19911 to
d1c07cb
Compare
Collaborator
Author
ewienik
requested changes
Jun 9, 2026
m-szymon
added a commit
to m-szymon/scylladb
that referenced
this pull request
Jun 9, 2026
ScyllaDB needs to support full-text search queries through the vector store service. This adds the client-side BM25 endpoint so ScyllaDB can request ranked full-text search results from the vector store, alongside the existing ANN (approximate nearest neighbor) endpoint. Tests are added mirroring the ann() test suite. The test infrastructure is extended with a mock server mode and a lightweight schema builder helper to avoid spinning up a full CQL environment where it is not needed. Fixes SCYLLADB-1511 Ref scylladb/vector-store#471
m-szymon
added a commit
to m-szymon/scylladb
that referenced
this pull request
Jun 9, 2026
ScyllaDB needs to support full-text search queries through the vector store service. This adds the client-side BM25 endpoint so ScyllaDB can request ranked full-text search results from the vector store, alongside the existing ANN (approximate nearest neighbor) endpoint. Tests are added mirroring the ann() test suite. The test infrastructure is extended with a mock server mode and a lightweight schema builder helper to avoid spinning up a full CQL environment where it is not needed. Fixes SCYLLADB-1511 Ref scylladb/vector-store#471
Add the /api/v1/indexes/{keyspace}/{index}/bm25 POST endpoint that
will perform BM25 full-text search. Currently returns 501 Not
Implemented.
Fixes: VECTOR-685
d1c07cb to
dbd1c9d
Compare
ewienik
approved these changes
Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the
POST /api/v1/indexes/{keyspace}/{index}/bm25endpoint for BM25 full-text search.Changes
PostIndexBm25RequestandPostIndexBm25Responsetypes tohttpapicratepost_index_25route handler with OpenAPI documentation501 Not Implementedas a stubopenapi.jsonwith the new endpoint specAPI
Request:
{ "query": "search text", "limit": 10 }Response (200):
{ "primary_keys": { "column_name": [...] }, "scores": [0.95, 0.87, ...] }Fixes: VECTOR-685