From 925cfbebacaad1d8fbe44c990a222a75cc777e8c 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 4ea14c1bf1b09..5913d16774a72 100644 --- a/internal/proxy/search_util.go +++ b/internal/proxy/search_util.go @@ -488,11 +488,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) }