Skip to content

Commit

Permalink
Adding compression documentation and example
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Gil committed Mar 13, 2018
1 parent de58931 commit bfd661c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/index.rst
Expand Up @@ -258,6 +258,21 @@ bodies via post::
from elasticsearch import Elasticsearch
es = Elasticsearch(send_get_body_as='POST')

Compression
~~~~~~~~~~~
When using capacity constrained networks (low throughput), it may be handy to enable
compression. This is especially useful when doing bulk loads or inserting large
documents. This will configure compression on the *request*.

from elasticsearch import Elasticsearch
es = Elasticsearch(hosts,
maxsize = 500,
connection_class=Urllib3HttpConnection,
timeout = 30,
http_compress = True
)


Running on AWS with IAM
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit bfd661c

Please sign in to comment.