Skip to content

Commit

Permalink
fix:[Cherr-pick] sealed segment get empty index params when brute for…
Browse files Browse the repository at this point in the history
…ce search for bm25 (milvus-io#38752)

relate: milvus-io#38236
pr: milvus-io#38707

Signed-off-by: aoiasd <[email protected]>
  • Loading branch information
aoiasd authored Dec 26, 2024
1 parent d47372e commit 930f9e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/core/src/segcore/ChunkedSegmentSealedImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
2 changes: 1 addition & 1 deletion internal/core/src/segcore/SegmentSealedImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,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();
}

Expand Down

0 comments on commit 930f9e9

Please sign in to comment.