mirror of https://github.com/milvus-io/milvus.git
* remove annoy search parameter validation Signed-off-by: cmli <chengming.li@zilliz.com> * fix test failed Signed-off-by: cmli <chengming.li@zilliz.com> * fix lint error Signed-off-by: cmli <chengming.li@zilliz.com> * fix lint error again Signed-off-by: cmli <chengming.li@zilliz.com> Co-authored-by: cmli <chengming.li@zilliz.com>pull/2677/head
parent
d4fc48bfa7
commit
3b38f7f198
|
@ -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
|
||||
|
||||
|
|
|
@ -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<int64_t>::max());
|
||||
auto status = CheckParameterRange(search_params, knowhere::IndexParams::search_k,
|
||||
std::numeric_limits<int64_t>::min(), std::numeric_limits<int64_t>::max());
|
||||
if (!status.ok()) {
|
||||
return status;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue