From 983745c3bb6c60da5ff992f5f84952312bf2b824 Mon Sep 17 00:00:00 2001 From: Cai Zhang Date: Fri, 20 Dec 2024 16:19:26 +0800 Subject: [PATCH] Support hybrid search with expression template Signed-off-by: Cai Zhang --- internal/proxy/search_util.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/internal/proxy/search_util.go b/internal/proxy/search_util.go index 559a96cfe23de..f92bff5cd0edd 100644 --- a/internal/proxy/search_util.go +++ b/internal/proxy/search_util.go @@ -339,11 +339,12 @@ func convertHybridSearchToSearch(req *milvuspb.HybridSearchRequest) *milvuspb.Se for _, sub := range req.GetRequests() { subReq := &milvuspb.SubSearchRequest{ - Dsl: sub.GetDsl(), - PlaceholderGroup: sub.GetPlaceholderGroup(), - DslType: sub.GetDslType(), - SearchParams: sub.GetSearchParams(), - Nq: sub.GetNq(), + Dsl: sub.GetDsl(), + PlaceholderGroup: sub.GetPlaceholderGroup(), + DslType: sub.GetDslType(), + SearchParams: sub.GetSearchParams(), + Nq: sub.GetNq(), + ExprTemplateValues: sub.GetExprTemplateValues(), } ret.SubReqs = append(ret.SubReqs, subReq) }