Skip to content

Commit

Permalink
fix: sealed segment get empty index params when brute force search fo…
Browse files Browse the repository at this point in the history
…r bm25 (#38707)

relate: #38236

Signed-off-by: aoiasd <[email protected]>
  • Loading branch information
aoiasd authored Dec 25, 2024
1 parent 363d7f3 commit bc15ad2
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 @@ -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();
}

Expand Down

0 comments on commit bc15ad2

Please sign in to comment.