File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,7 @@ to be opinion-free and very extendable.
99Example Usage
1010-------------
1111
12-
13- .. testsetup ::
14-
15- from datetime import datetime
16- from elasticsearch import Elasticsearch
17- es = Elasticsearch()
18- es.delete_index("test_index", ignore_missing=True)
19-
20- .. testcode ::
12+ ::
2113
2214 from datetime import datetime
2315 from elasticsearch import Elasticsearch
@@ -41,14 +33,6 @@ Example Usage
4133 for hit in res['hits']['hits']:
4234 print("%(timestamp)s %(author)s: %(text)s" % hit["_source"])
4335
44- .. testoutput ::
45- :hide:
46-
47- True
48- {u'text': u'Elasticsearch: cool. bonsai cool.', u'author': u'kimchy', u'timestamp': u'2010-10-10T10:10:10'}
49- Got 1 Hits:
50- 2010-10-10T10:10:10 kimchy: Elasticsearch: cool. bonsai cool.
51-
5236Features
5337--------
5438
You can’t perform that action at this time.
0 commit comments