diff --git a/internal/core/src/index/VectorDiskIndex.cpp b/internal/core/src/index/VectorDiskIndex.cpp index 2821d07c34..a7effd6b6d 100644 --- a/internal/core/src/index/VectorDiskIndex.cpp +++ b/internal/core/src/index/VectorDiskIndex.cpp @@ -159,7 +159,11 @@ VectorDiskAnnIndex::Build(const Config& config) { } auto opt_fields = GetValueFromConfig(config, VEC_OPT_FIELDS); - if (opt_fields.has_value() && index_.IsAdditionalScalarSupported()) { + auto is_partition_key_isolation = + GetValueFromConfig(build_config, "partition_key_isolation"); + if (opt_fields.has_value() && + index_.IsAdditionalScalarSupported( + is_partition_key_isolation.value_or(false))) { build_config[VEC_OPT_FIELDS_PATH] = file_manager_->CacheOptFieldToDisk(opt_fields.value()); // `partition_key_isolation` is already in the config, so it falls through diff --git a/internal/core/src/index/VectorMemIndex.cpp b/internal/core/src/index/VectorMemIndex.cpp index 4c7dc2a560..b8eabf4808 100644 --- a/internal/core/src/index/VectorMemIndex.cpp +++ b/internal/core/src/index/VectorMemIndex.cpp @@ -287,8 +287,11 @@ VectorMemIndex::Build(const Config& config) { auto opt_fields = GetValueFromConfig(config, VEC_OPT_FIELDS); std::unordered_map>> scalar_info; - if (opt_fields.has_value() && index_.IsAdditionalScalarSupported() && - config.value("partition_key_isolation", false)) { + auto is_partition_key_isolation = + GetValueFromConfig(config, "partition_key_isolation"); + if (opt_fields.has_value() && + index_.IsAdditionalScalarSupported( + is_partition_key_isolation.value_or(false))) { scalar_info = file_manager_->CacheOptFieldToMemory(opt_fields.value()); } diff --git a/internal/core/thirdparty/knowhere/CMakeLists.txt b/internal/core/thirdparty/knowhere/CMakeLists.txt index 89d30e2a36..bda0b43ab4 100644 --- a/internal/core/thirdparty/knowhere/CMakeLists.txt +++ b/internal/core/thirdparty/knowhere/CMakeLists.txt @@ -14,7 +14,7 @@ # Update KNOWHERE_VERSION for the first occurrence milvus_add_pkg_config("knowhere") set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES "") -set( KNOWHERE_VERSION 7dc867d3 ) +set( KNOWHERE_VERSION fcd447d ) set( GIT_REPOSITORY "https://github.com/zilliztech/knowhere.git") message(STATUS "Knowhere repo: ${GIT_REPOSITORY}") message(STATUS "Knowhere version: ${KNOWHERE_VERSION}")