diff --git a/docs/index.rst b/docs/index.rst index 742c18b6..f73234a5 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -9,15 +9,7 @@ to be opinion-free and very extendable. Example Usage ------------- - -.. testsetup:: - - from datetime import datetime - from elasticsearch import Elasticsearch - es = Elasticsearch() - es.delete_index("test_index", ignore_missing=True) - -.. testcode:: +:: from datetime import datetime from elasticsearch import Elasticsearch @@ -41,14 +33,6 @@ Example Usage for hit in res['hits']['hits']: print("%(timestamp)s %(author)s: %(text)s" % hit["_source"]) -.. testoutput:: - :hide: - - True - {u'text': u'Elasticsearch: cool. bonsai cool.', u'author': u'kimchy', u'timestamp': u'2010-10-10T10:10:10'} - Got 1 Hits: - 2010-10-10T10:10:10 kimchy: Elasticsearch: cool. bonsai cool. - Features --------