Skip to content

Add universal query endpoint and deprecate legacy search/recommend endpoints#64

Merged
hkulekci merged 7 commits into
mainfrom
feature/universal-query-endpoint
Apr 16, 2026
Merged

Add universal query endpoint and deprecate legacy search/recommend endpoints#64
hkulekci merged 7 commits into
mainfrom
feature/universal-query-endpoint

Conversation

@hkulekci
Copy link
Copy Markdown
Owner

Implement the new universal query API (/points/query, /points/query/batch, /points/query/groups) which replaces the deprecated search, recommend, and discover endpoints. Add QueryRequest, BatchQueryRequest, and QueryGroupsRequest models with support for nearest, recommend, discover, fusion, order_by, sample queries, prefetch pipelines, and cross-collection lookups. Mark SearchRequest, RecommendRequest, BatchRecommendRequest, and their corresponding endpoint methods as deprecated. Add shard_key support and limit validation to SearchRequest.

hkulekci and others added 3 commits March 26, 2026 03:32
…dpoints

Implement the new universal query API (`/points/query`, `/points/query/batch`,
`/points/query/groups`) which replaces the deprecated search, recommend, and
discover endpoints. Add QueryRequest, BatchQueryRequest, and QueryGroupsRequest
models with support for nearest, recommend, discover, fusion, order_by, sample
queries, prefetch pipelines, and cross-collection lookups. Mark SearchRequest,
RecommendRequest, BatchRecommendRequest, and their corresponding endpoint
methods as deprecated. Add shard_key support and limit validation to
SearchRequest.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- actions/checkout v2 → v4
- actions/cache v2 → v4
- codecov/codecov-action v3 → v4
- Replace deprecated set-output with GITHUB_OUTPUT

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…rvice

Add required setLimit() calls to RecommendRequest and BatchRecommendRequest
tests to match the limit validation added in the previous commit. Remove
locks tests from ServiceTest as the /locks endpoint has been removed from
the Qdrant API, and mark getLocks/setLocks methods as deprecated.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.06%. Comparing base (0a92196) to head (905d6cd).
⚠️ Report is 11 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #64      +/-   ##
============================================
- Coverage     94.13%   94.06%   -0.07%     
- Complexity      411      478      +67     
============================================
  Files            78       82       +4     
  Lines          1296     1382      +86     
============================================
+ Hits           1220     1300      +80     
- Misses           76       82       +6     
Flag Coverage Δ
unittests 94.06% <100.00%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Cover all three Query endpoint methods (query, batch, groups) with
integration tests including nearest vector search, filters, payload,
vector inclusion, score threshold, offset/limit, search params, using,
recommend queries, query parameters, batch queries, and group queries
with payload and filter support.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@hkulekci hkulekci force-pushed the feature/universal-query-endpoint branch from c346ccf to bf5c10f Compare April 3, 2026 01:52
@hkulekci hkulekci force-pushed the feature/universal-query-endpoint branch from bf5c10f to 6dfcfc6 Compare April 3, 2026 02:01
hkulekci and others added 2 commits April 16, 2026 21:57
…rage

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ld assertions

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@hkulekci hkulekci merged commit 3735740 into main Apr 16, 2026
5 of 6 checks passed
@hkulekci hkulekci deleted the feature/universal-query-endpoint branch April 16, 2026 19:08
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