diff --git a/misc/es/es.go b/misc/es/es.go index 764f9262..a1dcdb0e 100644 --- a/misc/es/es.go +++ b/misc/es/es.go @@ -62,7 +62,7 @@ var Index = &ice.Context{Name: ES, Help: "搜索", "GET": {Name: "GET 查看:button cmd=/", Help: "命令", Action: map[string]*ice.Action{}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { if pod := m.Option("_pod"); pod != "" { m.Option("_pod", "") - m.Cmdy(web.SPACE, pod, "web.code.es.command", arg) + m.Cmdy(web.SPACE, pod, "web.code.es.GET", arg) return } diff --git a/misc/es/es.shy b/misc/es/es.shy index 56a27dd8..4693b693 100644 --- a/misc/es/es.shy +++ b/misc/es/es.shy @@ -27,12 +27,12 @@ curl http://localhost:9200 ` # field command web.code.es.command option `{ _pod centos.remote }` -field GET web.code.es.GET style command args `[ /index_test/test_type/1 ]` +field GET web.code.es.GET style command args `[ /index_test/test_type/1 ]` option `{ _pod centos.remote }` field CMD web.code.es.CMD style command args `[ POST /index_test/test_type/1 ] ` content `{ "name": "lisi", "age" : "12" -}` +}` option `{ _pod centos.remote }` field es web.code.es.es field install web.code.install