mirror of https://github.com/milvus-io/milvus.git
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
parent
2e60da4acc
commit
31b6701372
|
@ -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
|
||||
|
|
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue