From aa5418a5a9e0ddec5d31884f4e0e6d6aa562932b Mon Sep 17 00:00:00 2001 From: Buqian Zheng Date: Wed, 17 Jul 2024 15:13:41 +0800 Subject: [PATCH] fix: correctly set search params when using knowhere iterator (#34731) issue: #34730 Signed-off-by: Buqian Zheng --- internal/core/src/query/groupby/SearchGroupByOperator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/core/src/query/groupby/SearchGroupByOperator.h b/internal/core/src/query/groupby/SearchGroupByOperator.h index 41e3d2299dc3c..dc0ec4037ebb8 100644 --- a/internal/core/src/query/groupby/SearchGroupByOperator.h +++ b/internal/core/src/query/groupby/SearchGroupByOperator.h @@ -133,7 +133,7 @@ PrepareVectorIteratorsFromIndex(const SearchInfo& search_info, const index::VectorIndex& index) { if (search_info.group_by_field_id_.has_value()) { try { - auto search_conf = search_info.search_params_; + auto search_conf = index.PrepareSearchParams(search_info); knowhere::expected> iterators_val = index.VectorIterators(dataset, search_conf, bitset);