From 356bf191ca094eaa7234ba066f722b4704600785 Mon Sep 17 00:00:00 2001 From: aoiasd Date: Tue, 24 Dec 2024 16:57:30 +0800 Subject: [PATCH] Fix sealed segment get empty index params when brute force search for bm25 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 3abede7800536..06c05825bf583 100644 --- a/internal/core/src/segcore/SegmentSealedImpl.cpp +++ b/internal/core/src/segcore/SegmentSealedImpl.cpp @@ -945,7 +945,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(); }