Commit 81ec3acd authored by 赵威's avatar 赵威

add printer

parent 3711a05d
......@@ -55,15 +55,15 @@ object ES {
// TODO read from config
val client: ElasticClient = ESClient.create("172.16.52.33", 9200, "elastic", "gengmei!@#")
val bb = multi(
search("gm-dbmw-diary-read").source(diaryQuery),
search("gm-dbmw-tractate-read").source(tractateQuery)
)
println(bb.show)
// TODO remove await
val resp = client
.execute(
multi(
search("gm-dbmw-diary-read").source(diaryQuery),
search("gm-dbmw-tractate-read").source(tractateQuery)
)
)
.await
val resp = client.execute(bb).await
// println(resp)
......
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