mirror of https://github.com/milvus-io/milvus.git
fix: phrase match does not support offset input (#39338)
fix: #39337 Signed-off-by: SpadeA-Tang <tangchenjie1210@gmail.com>pull/39366/head
parent
74b4369c5b
commit
0461ddf776
|
@ -701,6 +701,9 @@ struct fmt::formatter<milvus::OpType> : formatter<string_view> {
|
|||
case milvus::OpType::TextMatch:
|
||||
name = "TextMatch";
|
||||
break;
|
||||
case milvus::OpType::PhraseMatch:
|
||||
name = "PhraseMatch";
|
||||
break;
|
||||
}
|
||||
return formatter<string_view>::format(name, ctx);
|
||||
}
|
||||
|
|
|
@ -330,7 +330,8 @@ class PhyUnaryRangeFilterExpr : public SegmentExpr {
|
|||
|
||||
bool
|
||||
SupportOffsetInput() override {
|
||||
if (expr_->op_type_ == proto::plan::OpType::TextMatch) {
|
||||
if (expr_->op_type_ == proto::plan::OpType::TextMatch ||
|
||||
expr_->op_type_ == proto::plan::OpType::PhraseMatch) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue