Skip to content

Commit 52006f4

Browse files
committed
clean up docs, closes #800
1 parent cab17fd commit 52006f4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

elasticsearch/client/__init__.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class Elasticsearch(object):
117117
['localhost:443', 'other_host:443'],
118118
# turn on SSL
119119
use_ssl=True,
120-
# make sure we verify SSL certificates (off by default)
120+
# make sure we verify SSL certificates
121121
verify_certs=True,
122122
# provide a path to CA certs on disk
123123
ca_certs='/path/to/CA_certs'
@@ -131,7 +131,7 @@ class Elasticsearch(object):
131131
['localhost:443', 'other_host:443'],
132132
# turn on SSL
133133
use_ssl=True,
134-
# make sure we verify SSL certificates (off by default)
134+
# make sure we verify SSL certificates
135135
verify_certs=True,
136136
# provide a path to CA certs on disk
137137
ca_certs='/path/to/CA_certs',
@@ -151,12 +151,12 @@ class Elasticsearch(object):
151151
],
152152
verify_certs=True
153153
)
154-
154+
155155
By default, `JSONSerializer
156-
<https://github.com/elastic/elasticsearch-py/blob/master/elasticsearch/serializer.py#L24>`_
156+
<https://github.com/elastic/elasticsearch-py/blob/master/elasticsearch/serializer.py#L24>`_
157157
is used to encode all outgoing requests.
158158
However, you can implement your own custom serializer::
159-
159+
160160
from elasticsearch.serializer import JSONSerializer
161161
162162
class SetEncoder(JSONSerializer):
@@ -166,7 +166,7 @@ def default(self, obj):
166166
if isinstance(obj, Something):
167167
return 'CustomSomethingRepresentation'
168168
return JSONSerializer.default(self, obj)
169-
169+
170170
es = Elasticsearch(serializer=SetEncoder())
171171
172172
"""

0 commit comments

Comments
 (0)