Skip to content

Conversation

@timvisee
Copy link
Member

@timvisee timvisee commented Jan 23, 2026

We still showed our search API in many places. This PR migrates it to use the query API instead.

This primarily:

  • replaces search example on documentation front page with query (versus current):
image
  • replaces examples/search.rs with examples/query.rs
    let query_result = client
    .query(
    QueryPointsBuilder::new(collection_name)
    .query(vec![11.0; 10])
    .limit(10)
    .filter(Filter::all([Condition::matches("bar", 12)]))
    .with_payload(true)
    .params(SearchParamsBuilder::default().exact(true)),
    )
    .await?;
    dbg!(&query_result);
    // query_result = [
    // {
    // "id": 0,
    // "version": 0,
    // "score": 1.0000001,
    // "payload": {
    // "bar": 12,
    // "baz": {
    // "qux": "quux"
    // },
    // "foo": "Bar"
    // }
    // }
    // ]
  • some other minor changes to hint and use query instead

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Co-authored-by: Kumar Shivendu <kshivendu1@gmail.com>
@timvisee timvisee merged commit b87748e into dev Jan 23, 2026
2 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.

4 participants