diff --git a/CHANGELOG.md b/CHANGELOG.md index 63611538ac..fcd5230e02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Please mark all change in change log and use the issue from GitHub - \#2598 fix Milvus docker image report illegal instruction - \#2617 Fix HNSW and RNSG index files size - \#2637 Suit the range of HNSW parameters +- \#2649 search parameter of annoy has conflict with document ## Feature diff --git a/core/src/utils/ValidationUtil.cpp b/core/src/utils/ValidationUtil.cpp index e650e0e87b..d2b4b39624 100644 --- a/core/src/utils/ValidationUtil.cpp +++ b/core/src/utils/ValidationUtil.cpp @@ -316,8 +316,8 @@ ValidationUtil::ValidateSearchParams(const milvus::json& search_params, break; } case (int32_t)engine::EngineType::ANNOY: { - auto status = CheckParameterRange(search_params, knowhere::IndexParams::search_k, topk, - std::numeric_limits::max()); + auto status = CheckParameterRange(search_params, knowhere::IndexParams::search_k, + std::numeric_limits::min(), std::numeric_limits::max()); if (!status.ok()) { return status; }