forked from olivere/elastic
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optional gzip compression setting
Use `elastic.SetGzip(true)` to enable gzip compression of HTTP request/response with Elasticsearch. Notice that you need to enable gzip compression in Elasticsearch first by adding `http.compression: true` to `elasticsearch.yml` (see [docs](https://www.elastic.co/guide/en/elasticsearch/reference/2.0/modules-http.html)).
- Loading branch information
Showing
3 changed files
with
82 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters