Golang elasticsearch olivere http compression

50 views
Skip to first unread message

torsten....@gl-systemhaus.de

unread,
May 14, 2018, 8:00:21 AM5/14/18
to golang-nuts
Hi,

I need some help to use the olivere elasticsearch client to make a compressed http connection to our elasticsearch.

I have tried it with:

hc := &http.Client{
Transport: &http.Transport{
DisableCompression: false,
},
}

and set: elastic.NewClient(elastic.SetHttpClient(hc))

but it do not use a compression. How do I enable the compression for a connection in the client?
Is there an other way to use compression?

Thanks for your help.

best regards
Torsten
Reply all
Reply to author
Forward
0 new messages