Removed deprecated connection classes from docs
This commit is contained in:
+6
-20
@@ -5,16 +5,14 @@ Transport classes
|
|||||||
|
|
||||||
List of transport classes that can be used, simply import your choice and pass
|
List of transport classes that can be used, simply import your choice and pass
|
||||||
it to the constructor of :class:`~elasticsearch.Elasticsearch` as
|
it to the constructor of :class:`~elasticsearch.Elasticsearch` as
|
||||||
`connection_class`. Note that Thrift and Memcached protocols are experimental
|
`connection_class`. Note that the
|
||||||
and require a plugin to be installed in your cluster as well as additional
|
:class:`~elasticsearch.connection.RequestsHttpConnection` requires ``requests``
|
||||||
dependencies (`thrift==0.9` and `pylibmc==1.2`).
|
to be installed.
|
||||||
|
|
||||||
For example to use the thrift connection just import it and use it. The
|
For example to use the ``requests``-based connection just import it and use it::
|
||||||
connection classes are aware of their respective default ports (9500 for
|
|
||||||
thrift) so there is no need to specify them unless modified::
|
|
||||||
|
|
||||||
from elasticsearch import Elasticsearch, ThriftConnection
|
from elasticsearch import Elasticsearch, RequestsHttpConnection
|
||||||
es = Elasticsearch(connection_class=ThriftConnection)
|
es = Elasticsearch(connection_class=RequestsHttpConnection)
|
||||||
|
|
||||||
|
|
||||||
.. py:module:: elasticsearch.connection
|
.. py:module:: elasticsearch.connection
|
||||||
@@ -35,15 +33,3 @@ RequestsHttpConnection
|
|||||||
|
|
||||||
.. autoclass:: RequestsHttpConnection
|
.. autoclass:: RequestsHttpConnection
|
||||||
|
|
||||||
|
|
||||||
ThriftConnection
|
|
||||||
----------------
|
|
||||||
|
|
||||||
.. autoclass:: ThriftConnection
|
|
||||||
|
|
||||||
|
|
||||||
MemcachedConnection
|
|
||||||
-------------------
|
|
||||||
|
|
||||||
.. autoclass:: MemcachedConnection
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user