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