Update docs to v7 (#923)
This commit is contained in:
committed by
Nick Lang
parent
0b7220aa4a
commit
9cafeeb651
+1
-1
@@ -72,7 +72,7 @@ Example Usage
|
|||||||
es.indices.refresh(index="test-index")
|
es.indices.refresh(index="test-index")
|
||||||
|
|
||||||
res = es.search(index="test-index", body={"query": {"match_all": {}}})
|
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']:
|
for hit in res['hits']['hits']:
|
||||||
print("%(timestamp)s %(author)s: %(text)s" % hit["_source"])
|
print("%(timestamp)s %(author)s: %(text)s" % hit["_source"])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user