This is an automated email from the ASF dual-hosted git repository. hulk pushed a commit to branch 2.10 in repository https://gitbox.apache.org/repos/asf/kvrocks.git
commit ea1af667e61e94749756cad306e64a4f42aa8757 Author: git-hulk <[email protected]> AuthorDate: Wed Oct 2 18:13:44 2024 +0800 Comment out Kvrocks search command group --- src/commands/cmd_search.cc | 19 ++++++++++--------- tests/gocase/unit/search/search_test.go | 2 ++ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/commands/cmd_search.cc b/src/commands/cmd_search.cc index 7dbaa4af..28bdfeb7 100644 --- a/src/commands/cmd_search.cc +++ b/src/commands/cmd_search.cc @@ -477,17 +477,18 @@ class CommandFTDrop : public Commander { output->append(SimpleString("OK")); return Status::OK(); + }; }; -REDIS_REGISTER_COMMANDS(Search, - MakeCmdAttr<CommandFTCreate>("ft.create", -2, "write exclusive no-multi no-script", 0, 0, 0), - MakeCmdAttr<CommandFTSearchSQL>("ft.searchsql", -2, "read-only", 0, 0, 0), - MakeCmdAttr<CommandFTSearch>("ft.search", -3, "read-only", 0, 0, 0), - MakeCmdAttr<CommandFTExplainSQL>("ft.explainsql", -2, "read-only", 0, 0, 0), - MakeCmdAttr<CommandFTExplain>("ft.explain", -3, "read-only", 0, 0, 0), - MakeCmdAttr<CommandFTInfo>("ft.info", 2, "read-only", 0, 0, 0), - MakeCmdAttr<CommandFTList>("ft._list", 1, "read-only", 0, 0, 0), - MakeCmdAttr<CommandFTDrop>("ft.dropindex", 2, "write exclusive no-multi no-script", 0, 0, 0)); +// REDIS_REGISTER_COMMANDS(Search, +// MakeCmdAttr<CommandFTCreate>("ft.create", -2, "write exclusive no-multi no-script", 0, 0, 0), +// MakeCmdAttr<CommandFTSearchSQL>("ft.searchsql", -2, "read-only", 0, 0, 0), +// MakeCmdAttr<CommandFTSearch>("ft.search", -3, "read-only", 0, 0, 0), +// MakeCmdAttr<CommandFTExplainSQL>("ft.explainsql", -2, "read-only", 0, 0, 0), +// MakeCmdAttr<CommandFTExplain>("ft.explain", -3, "read-only", 0, 0, 0), +// MakeCmdAttr<CommandFTInfo>("ft.info", 2, "read-only", 0, 0, 0), +// MakeCmdAttr<CommandFTList>("ft._list", 1, "read-only", 0, 0, 0), +// MakeCmdAttr<CommandFTDrop>("ft.dropindex", 2, "write exclusive no-multi no-script", 0, 0, 0)); } // namespace redis diff --git a/tests/gocase/unit/search/search_test.go b/tests/gocase/unit/search/search_test.go index 01445994..9189908d 100644 --- a/tests/gocase/unit/search/search_test.go +++ b/tests/gocase/unit/search/search_test.go @@ -43,6 +43,8 @@ func SetBinaryBuffer(buf *bytes.Buffer, vec []float64) error { } func TestSearch(t *testing.T) { + t.Skip("search commands is disabled") + srv := util.StartServer(t, map[string]string{}) defer srv.Close()
