File tree 1 file changed +6
-20
lines changed
1 file changed +6
-20
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,14 @@ Transport classes
5
5
6
6
List of transport classes that can be used, simply import your choice and pass
7
7
it 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 .
11
11
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::
15
13
16
- from elasticsearch import Elasticsearch, ThriftConnection
17
- es = Elasticsearch(connection_class=ThriftConnection )
14
+ from elasticsearch import Elasticsearch, RequestsHttpConnection
15
+ es = Elasticsearch(connection_class=RequestsHttpConnection )
18
16
19
17
20
18
.. py :module :: elasticsearch.connection
@@ -35,15 +33,3 @@ RequestsHttpConnection
35
33
36
34
.. autoclass :: RequestsHttpConnection
37
35
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