fix: Support hybrid search with expression template (#38623)

issue: #38616

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
pull/38662/head
cai.zhang 2024-12-23 14:32:51 +08:00 committed by GitHub
parent 205231b9c7
commit 2356425530
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 5 deletions

View File

@ -488,11 +488,12 @@ func convertHybridSearchToSearch(req *milvuspb.HybridSearchRequest) *milvuspb.Se
for _, sub := range req.GetRequests() { for _, sub := range req.GetRequests() {
subReq := &milvuspb.SubSearchRequest{ subReq := &milvuspb.SubSearchRequest{
Dsl: sub.GetDsl(), Dsl: sub.GetDsl(),
PlaceholderGroup: sub.GetPlaceholderGroup(), PlaceholderGroup: sub.GetPlaceholderGroup(),
DslType: sub.GetDslType(), DslType: sub.GetDslType(),
SearchParams: sub.GetSearchParams(), SearchParams: sub.GetSearchParams(),
Nq: sub.GetNq(), Nq: sub.GetNq(),
ExprTemplateValues: sub.GetExprTemplateValues(),
} }
ret.SubReqs = append(ret.SubReqs, subReq) ret.SubReqs = append(ret.SubReqs, subReq)
} }