sunty
2019-07-18 6a413e1d7d485f506e81c669bc692868c29cefb9
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!")