Skip to content

Commit 9cafeeb

Browse files
elyasefxdgear
authored andcommitted
Update docs to v7 (#923)
1 parent 0b7220a commit 9cafeeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Example Usage
7272
es.indices.refresh(index="test-index")
7373

7474
res = es.search(index="test-index", body={"query": {"match_all": {}}})
75-
print("Got %d Hits:" % res['hits']['total'])
75+
print("Got %d Hits:" % res['hits']['total']['value'])
7676
for hit in res['hits']['hits']:
7777
print("%(timestamp)s %(author)s: %(text)s" % hit["_source"])
7878

0 commit comments

Comments
 (0)