Restful API error: When the specified partition is retrieved, the partition_tag is not valid (#4206)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
Signed-off-by: shengjun.li <shengjun.li@zilliz.com>
pull/4228/head
yukun 2020-11-10 17:55:34 +08:00 committed by shengjun.li
parent 9d0099ad2d
commit c18e70fab3
2 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@ Please mark all changes in change log and use the issue from GitHub
- \#4113 After milvus 0.11.0 version vector data is misaligned
- \#4116 ResfulApi Search return null
- \#4170 Must_not query check failed in dsl
- \#4205 Restful API error: When the specified partition is retrieved, the partition_tag is not valid
## Feature
- \#4163 Update C++ sdk search interface

View File

@ -800,6 +800,7 @@ WebRequestHandler::Search(const std::string& collection_name, const nlohmann::js
auto boolean_query_json = query_json["bool"];
auto boolean_query = std::make_shared<query::BooleanQuery>();
query_ptr_ = std::make_shared<query::Query>();
query_ptr_->partitions = partition_tags;
query_ptr_->collection_id = collection_name;
status = ProcessBooleanQueryJson(boolean_query_json, boolean_query, query_ptr_);