Update docs to v7 (#923)

This commit is contained in:
Yaser Martinez Palenzuela
2019-04-25 16:10:47 -06:00
committed by Nick Lang
parent 0b7220aa4a
commit 9cafeeb651
+1 -1
View File
@@ -72,7 +72,7 @@ Example Usage
es.indices.refresh(index="test-index")
res = es.search(index="test-index", body={"query": {"match_all": {}}})
print("Got %d Hits:" % res['hits']['total'])
print("Got %d Hits:" % res['hits']['total']['value'])
for hit in res['hits']['hits']:
print("%(timestamp)s %(author)s: %(text)s" % hit["_source"])