From 655653df225516fc28419575e5aeafd0f1076531 Mon Sep 17 00:00:00 2001 From: git-hulk Date: Wed, 2 Oct 2024 18:13:44 +0800 Subject: [PATCH] Comment out Kvrocks search command group --- src/commands/cmd_search.cc | 18 +++++++++--------- tests/gocase/unit/search/search_test.go | 2 ++ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/commands/cmd_search.cc b/src/commands/cmd_search.cc index 7dbaa4af02b..ce5a2a3e5ed 100644 --- a/src/commands/cmd_search.cc +++ b/src/commands/cmd_search.cc @@ -480,14 +480,14 @@ class CommandFTDrop : public Commander { }; }; -REDIS_REGISTER_COMMANDS(Search, - MakeCmdAttr("ft.create", -2, "write exclusive no-multi no-script", 0, 0, 0), - MakeCmdAttr("ft.searchsql", -2, "read-only", 0, 0, 0), - MakeCmdAttr("ft.search", -3, "read-only", 0, 0, 0), - MakeCmdAttr("ft.explainsql", -2, "read-only", 0, 0, 0), - MakeCmdAttr("ft.explain", -3, "read-only", 0, 0, 0), - MakeCmdAttr("ft.info", 2, "read-only", 0, 0, 0), - MakeCmdAttr("ft._list", 1, "read-only", 0, 0, 0), - MakeCmdAttr("ft.dropindex", 2, "write exclusive no-multi no-script", 0, 0, 0)); +// REDIS_REGISTER_COMMANDS(Search, +// MakeCmdAttr("ft.create", -2, "write exclusive no-multi no-script", 0, 0, 0), +// MakeCmdAttr("ft.searchsql", -2, "read-only", 0, 0, 0), +// MakeCmdAttr("ft.search", -3, "read-only", 0, 0, 0), +// MakeCmdAttr("ft.explainsql", -2, "read-only", 0, 0, 0), +// MakeCmdAttr("ft.explain", -3, "read-only", 0, 0, 0), +// MakeCmdAttr("ft.info", 2, "read-only", 0, 0, 0), +// MakeCmdAttr("ft._list", 1, "read-only", 0, 0, 0), +// MakeCmdAttr("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 0144599439f..9189908d9ca 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()