diff --git a/misc/es/es.go b/misc/es/es.go index 7330ba47..164cb10a 100644 --- a/misc/es/es.go +++ b/misc/es/es.go @@ -66,6 +66,11 @@ var Index = &ice.Context{Name: ES, Help: "搜索", } }}, + "command": {Name: "command 执行:button method:select=GET|PUT|POST|DELETE cmd data:textarea", Help: "命令", Action: map[string]*ice.Action{}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { + m.Option("header", "Content-Type", "application/json") + m.Echo(kit.Formats(kit.UnMarshal(m.Cmdx("web.spide", "dev", "raw", arg[0], "http://localhost:9200/"+arg[1], "data", arg[2])))) + }}, + "index": {Name: "table index 创建:button", Help: "索引", Action: map[string]*ice.Action{}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { if len(arg) == 0 { m.Cmdy(cli.DAEMON) diff --git a/misc/es/es.shy b/misc/es/es.shy index d690920d..ced20aac 100644 --- a/misc/es/es.shy +++ b/misc/es/es.shy @@ -26,6 +26,8 @@ spark shell ` $ curl http://localhost:9200 ` +field command web.code.es.command option `{ pod centos.remote }` + field document web.code.es.document field es web.code.es.es field install web.code.install