Commit 877856da authored by 赵威's avatar 赵威

add logger

parent d26d5800
......@@ -69,10 +69,12 @@ object ES {
def request(req: SearchRequest): Either[Throwable, Future[IndexedSeq[Content]]] = {
val client: ElasticClient = ESClient.create("172.16.52.33", 9200, "elastic", "gengmei!@#")
// println(req.show)
println("@@@@@@@@@@@@@")
client.execute(req).map { resp =>
val a = resp.result.to[Content]
a.foreach(x => println("################", x.id, x.index, x.serviceId))
}
println("@@@@@@@@@@@@@")
try {
Right(client.execute(req).map(resp => resp.result.to[Content]))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment