enhance: add more info to hybrid index log (#35808)

#32900

Signed-off-by: luzhang <luzhang@zilliz.com>
Co-authored-by: luzhang <luzhang@zilliz.com>
This commit is contained in:
zhagnlu 2024-08-29 21:07:04 +08:00 committed by GitHub
parent a3f2f044d6
commit 671112d17b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -227,8 +227,6 @@ void
HybridScalarIndex<T>::BuildInternal(
const std::vector<FieldDataPtr>& field_datas) {
auto index = GetInternalIndex();
LOG_INFO("build hybrid index with internal index:{}",
ToString(internal_index_type_));
index->BuildWithFieldData(field_datas);
}
@ -254,6 +252,13 @@ HybridScalarIndex<T>::Build(const Config& config) {
SelectIndexBuildType(field_datas);
BuildInternal(field_datas);
auto index_meta = file_manager_context_.indexMeta;
LOG_INFO(
"build hybrid index with internal index:{}, for segment_id:{}, "
"field_id:{}",
ToString(internal_index_type_),
index_meta.segment_id,
index_meta.field_id);
is_built_ = true;
}