Support element filter search for struct field#1754
Support element filter search for struct field#1754sre-ci-robot merged 1 commit intomilvus-io:masterfrom
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: yhmo The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Pull request overview
This PR adds support for element-level filtering in struct field searches by propagating an elementLevel flag through the search pipeline and exposing element offset information in search results.
Changes:
- Added
elementLevelparameter to placeholder conversion methods to support element-level search filtering - Extended
SearchResultto includeelementOffsetfield for tracking matched element positions - Modified search request conversion to detect
element_filterin query strings and set the appropriate flag
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| sdk-core/src/main/milvus-proto | Updated subproject commit reference to include element-level search support |
| sdk-core/src/main/java/io/milvus/v2/utils/VectorUtils.java | Added elementLevel parameter propagation through search request conversion methods |
| sdk-core/src/main/java/io/milvus/v2/utils/ConvertUtils.java | Added logic to extract and set element offset from search results |
| sdk-core/src/main/java/io/milvus/v2/service/vector/response/SearchResp.java | Added elementOffset field to SearchResult class with getter/setter and builder support |
| sdk-core/src/main/java/io/milvus/param/ParamUtils.java | Added overloaded convertPlaceholder method with elementLevel parameter |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: yhmo <yihua.mo@zilliz.com>
No description provided.