-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add range search capability to indexes with AnnIterator support #508
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zhengbuqian The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #508 +/- ##
=========================================
+ Coverage 0 71.32% +71.32%
=========================================
Files 0 67 +67
Lines 0 4429 +4429
=========================================
+ Hits 0 3159 +3159
- Misses 0 1270 +1270 |
3e6a608
to
7c7c35a
Compare
/hold |
fixing in #509, will unhold after that is merged. |
7c7c35a
to
a66ba98
Compare
/unhold |
800a881
to
cdb09d7
Compare
if (similarity_metric ? dist <= radius : dist >= radius) { | ||
break; | ||
} | ||
result_id_array[idx].push_back(id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the comments from config.h
state about (radius, range_filter]
or [range_filter, radius)
, but two ifs right above state about (radius, range_filter)
or (range_filter, radius)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the comments are correct. I wrote the code based on notes in https://milvus.io/docs/v2.3.x/within_range.md#Distance-metrics-influence, which is wrong and will be updated.
cdb09d7
to
4c58660
Compare
…ently tested using sparse index. Signed-off-by: Buqian Zheng <zhengbuqian@gmail.com>
4c58660
to
948a79e
Compare
/lgtm |
tested using sparse index.
issue: #193
/kind: feature