fix: phrase match does not support offset input (#39338)

fix: #39337

Signed-off-by: SpadeA-Tang <tangchenjie1210@gmail.com>
pull/39366/head
Spade A 2025-01-16 22:05:01 +08:00 committed by GitHub
parent 74b4369c5b
commit 0461ddf776
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -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);
}

View File

@ -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;