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 <zhicheng.yue@zilliz.com>
pull/38755/head
aoiasd 2024-12-25 19:06:51 +08:00 committed by GitHub
parent 363d7f31ef
commit bc15ad24f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -896,7 +896,7 @@ ChunkedSegmentSealedImpl::vector_search(SearchInfo& search_info,
// get index params for bm25 brute force
std::map<std::string, std::string> index_info;
if (search_info.metric_type_ == knowhere::metric::BM25) {
auto index_info =
index_info =
col_index_meta_->GetFieldIndexMeta(field_id).GetIndexParams();
}

View File

@ -942,7 +942,7 @@ SegmentSealedImpl::vector_search(SearchInfo& search_info,
// get index params for bm25 brute force
std::map<std::string, std::string> index_info;
if (search_info.metric_type_ == knowhere::metric::BM25) {
auto index_info =
index_info =
col_index_meta_->GetFieldIndexMeta(field_id).GetIndexParams();
}