File tree Expand file tree Collapse file tree 1 file changed +6
-20
lines changed Expand file tree Collapse file tree 1 file changed +6
-20
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,14 @@ Transport classes
55
66List of transport classes that can be used, simply import your choice and pass
77it to the constructor of :class: `~elasticsearch.Elasticsearch ` as
8- `connection_class `. Note that Thrift and Memcached protocols are experimental
9- and require a plugin to be installed in your cluster as well as additional
10- dependencies (` thrift==0.9 ` and ` pylibmc==1.2 `) .
8+ `connection_class `. Note that the
9+ :class: ` ~elasticsearch.connection.RequestsHttpConnection ` requires `` requests ``
10+ to be installed .
1111
12- For example to use the thrift connection just import it and use it. The
13- connection classes are aware of their respective default ports (9500 for
14- thrift) so there is no need to specify them unless modified::
12+ For example to use the ``requests ``-based connection just import it and use it::
1513
16- from elasticsearch import Elasticsearch, ThriftConnection
17- es = Elasticsearch(connection_class=ThriftConnection )
14+ from elasticsearch import Elasticsearch, RequestsHttpConnection
15+ es = Elasticsearch(connection_class=RequestsHttpConnection )
1816
1917
2018.. py :module :: elasticsearch.connection
@@ -35,15 +33,3 @@ RequestsHttpConnection
3533
3634.. autoclass :: RequestsHttpConnection
3735
38-
39- ThriftConnection
40- ----------------
41-
42- .. autoclass :: ThriftConnection
43-
44-
45- MemcachedConnection
46- -------------------
47-
48- .. autoclass :: MemcachedConnection
49-
You can’t perform that action at this time.
0 commit comments