From bc15ad24f232384154fa83e4f75788180279e282 Mon Sep 17 00:00:00 2001 From: aoiasd <45024769+aoiasd@users.noreply.github.com> Date: Wed, 25 Dec 2024 19:06:51 +0800 Subject: [PATCH] fix: sealed segment get empty index params when brute force search for bm25 (#38707) relate: https://github.com/milvus-io/milvus/issues/38236 Signed-off-by: aoiasd --- internal/core/src/segcore/ChunkedSegmentSealedImpl.cpp | 2 +- internal/core/src/segcore/SegmentSealedImpl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/core/src/segcore/ChunkedSegmentSealedImpl.cpp b/internal/core/src/segcore/ChunkedSegmentSealedImpl.cpp index 1f6a1aa1e409e..b31fec905ea4b 100644 --- a/internal/core/src/segcore/ChunkedSegmentSealedImpl.cpp +++ b/internal/core/src/segcore/ChunkedSegmentSealedImpl.cpp @@ -896,7 +896,7 @@ ChunkedSegmentSealedImpl::vector_search(SearchInfo& search_info, // get index params for bm25 brute force std::map index_info; if (search_info.metric_type_ == knowhere::metric::BM25) { - auto index_info = + index_info = col_index_meta_->GetFieldIndexMeta(field_id).GetIndexParams(); } diff --git a/internal/core/src/segcore/SegmentSealedImpl.cpp b/internal/core/src/segcore/SegmentSealedImpl.cpp index cc17593b77141..ee8652da06d50 100644 --- a/internal/core/src/segcore/SegmentSealedImpl.cpp +++ b/internal/core/src/segcore/SegmentSealedImpl.cpp @@ -942,7 +942,7 @@ SegmentSealedImpl::vector_search(SearchInfo& search_info, // get index params for bm25 brute force std::map index_info; if (search_info.metric_type_ == knowhere::metric::BM25) { - auto index_info = + index_info = col_index_meta_->GetFieldIndexMeta(field_id).GetIndexParams(); }