Skip to content

Commit

Permalink
Comment out Kvrocks search command group
Browse files Browse the repository at this point in the history
  • Loading branch information
git-hulk committed Oct 2, 2024
1 parent b8cf118 commit 655653d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/commands/cmd_search.cc
Original file line number Diff line number Diff line change
Expand Up @@ -480,14 +480,14 @@ class CommandFTDrop : public Commander {
};
};

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
2 changes: 2 additions & 0 deletions tests/gocase/unit/search/search_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 655653d

Please sign in to comment.