When I use elastigo in golang to save data to elasticsearch, I can use the following code
var c_es = elastigo.NewConn()
var indexer = c_es.NewBulkIndexer(50)
However, when I use olivere, the code is a bit different. If I want to make a connection, then I must use
e_olivere, err = elastic.NewClient(elastic.SetURL("my address eg : 122.000.001"))
But I don't know how to find the replacement for NewBulkIndexer(). Does anyone know what the function is?
Thanks