From 6a413e1d7d485f506e81c669bc692868c29cefb9 Mon Sep 17 00:00:00 2001 From: sunty <1172534965@qq.com> Date: 星期四, 18 七月 2019 17:37:25 +0800 Subject: [PATCH] fix sdkcompare --- esutil/EsApi.go | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/esutil/EsApi.go b/esutil/EsApi.go index 17de9aa..0cdc863 100644 --- a/esutil/EsApi.go +++ b/esutil/EsApi.go @@ -23,7 +23,7 @@ "filter": [ { "term": { - "analyServerId": ` + analyServerId + ` + "analyServerId": "` + analyServerId + `" } } ] @@ -49,6 +49,7 @@ ] }` } + fmt.Println("url: "+"http://"+serverIp+":"+serverPort+"/"+indexName+"/_search","body: ",JsonDSL) buf, err := EsReq("POST", "http://"+serverIp+":"+serverPort+"/"+indexName+"/_search",[]byte(JsonDSL)) if err != nil { return dbinfos ,errors.New("http request dbtablename info is err!") -- Gitblit v1.8.0