Terms of must and must_not together are not working (#4624)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
Signed-off-by: shengjun.li <shengjun.li@zilliz.com>
pull/4675/head
yukun 2021-01-19 10:24:19 +08:00 committed by shengjun.li
parent 2e60da4acc
commit 31b6701372
2 changed files with 3 additions and 5 deletions

View File

@ -43,6 +43,7 @@ Please mark all changes in change log and use the issue from GitHub
- \#4488 get_entity_by_id() performance is poor in 0.11.0
- \#4511 Insert should be failed if field type not matched
- \#4536 restful api /collections/{collection_name}/partitions (DELETE) didn't work
- \#4619 Terms of must and must_not together are not working
## Feature
- \#4163 Update C++ sdk search interface

View File

@ -333,7 +333,8 @@ ExecutionEngineImpl::ExecBinaryQuery(const milvus::query::GeneralQueryPtr& gener
} else {
switch (general_query->bin->relation) {
case milvus::query::QueryRelation::AND:
case milvus::query::QueryRelation::R1: {
case milvus::query::QueryRelation::R1:
case milvus::query::QueryRelation::R4: {
bitset = (*left_bitset) & (*right_bitset);
break;
}
@ -343,10 +344,6 @@ ExecutionEngineImpl::ExecBinaryQuery(const milvus::query::GeneralQueryPtr& gener
bitset = (*left_bitset) | (*right_bitset);
break;
}
case milvus::query::QueryRelation::R4: {
bitset = (*left_bitset) & (right_bitset->negate());
break;
}
default: {
std::string msg = "Invalid QueryRelation in BinaryQuery";
return Status{SERVER_INVALID_ARGUMENT, msg};