elastic lib version
Closed this issue · 3 comments
dz1iang commented
can not build with "gopkg.in/olivere/elastic.v5" ,but with "gopkg.in/olivere/elastic.v6"
tsaikd commented
I build successfully with https://github.com/olivere/elastic/tree/52741dc2ce53629cbe1e673869040d886cba2cd5
what's your error message?
dz1iang commented
error:
../../../github.com/tsaikd/gogstash/output/elastic/outputelastic.go:106:40: conf.client.BulkProcessor().Name("gogstash-output-elastic").BulkActions(conf.BulkActions).BulkSize(conf.BulkSize).FlushInterval(conf.BulkFlushInterval).Backoff undefined (type *elastic.BulkProcessorService has no field or method Backoff)
it can work with:
gopkg.in/olivere/elastic.v6
tsaikd commented
run go get -u -v gopkg.in/olivere/elastic.v5
before go build