Beispiel #1
0
func (es *ElasticSearch) SendBulk(bulk *elastic.BulkService) {
	bulk.Do()
}
Beispiel #2
0
func (es *ElasticSearch) AddToBulk(bulk *elastic.BulkService, table string, model interface{}, id string) {
	bulk.Add(elastic.NewBulkIndexRequest().Index(es.index).Type(table).Doc(model).Id(id))
}