mirror of https://github.com/milvus-io/milvus.git
enhance: add more info to hybrid index log (#35808)
#32900 Signed-off-by: luzhang <luzhang@zilliz.com> Co-authored-by: luzhang <luzhang@zilliz.com>pull/35727/head
parent
a3f2f044d6
commit
671112d17b
|
@ -227,8 +227,6 @@ void
|
||||||
HybridScalarIndex<T>::BuildInternal(
|
HybridScalarIndex<T>::BuildInternal(
|
||||||
const std::vector<FieldDataPtr>& field_datas) {
|
const std::vector<FieldDataPtr>& field_datas) {
|
||||||
auto index = GetInternalIndex();
|
auto index = GetInternalIndex();
|
||||||
LOG_INFO("build hybrid index with internal index:{}",
|
|
||||||
ToString(internal_index_type_));
|
|
||||||
index->BuildWithFieldData(field_datas);
|
index->BuildWithFieldData(field_datas);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -254,6 +252,13 @@ HybridScalarIndex<T>::Build(const Config& config) {
|
||||||
|
|
||||||
SelectIndexBuildType(field_datas);
|
SelectIndexBuildType(field_datas);
|
||||||
BuildInternal(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;
|
is_built_ = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue