This is an automated email from the ASF dual-hosted git repository.
twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new f4664f88a feat(search): accept DIALECT option in FT.SEARCH (#3037)
f4664f88a is described below
commit f4664f88af5e9d267ccbe4cc54949a78976e8e65
Author: Twice <[email protected]>
AuthorDate: Tue Jun 24 17:37:17 2025 +0800
feat(search): accept DIALECT option in FT.SEARCH (#3037)
---
src/commands/cmd_search.cc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/commands/cmd_search.cc b/src/commands/cmd_search.cc
index 6fffbe91b..dab2fc718 100644
--- a/src/commands/cmd_search.cc
+++ b/src/commands/cmd_search.cc
@@ -386,6 +386,11 @@ static StatusOr<std::unique_ptr<kqir::Node>>
ParseRediSearchQuery(const std::vec
param_map.emplace(key, val);
}
+ } else if (parser.EatEqICase("DIALECT")) {
+ auto ver = GET_OR_RET(parser.TakeInt<size_t>());
+ if (ver != 2) {
+ return {Status::NotOK, "only DIALECT 2 is supported currently"};
+ }
} else {
return parser.InvalidSyntax();
}