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!")