I try to compress the bulk insert into ElasticSearch but I have some trouble.
I have no idea how to do it.
There is the code :
val client = HttpClient(ElasticsearchClientUri("localhost", 9200))
client.execute {
bulk(
indexInto("myindex" / "mytype").fields("country" -> "Mongolia", "capital" -> "Ulaanbaatar"),
indexInto("myindex" / "mytype").fields("country" -> "Namibia", "capital" -> "Windhoek")
)
}
Thanks for your help