We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b7220a commit 9cafeebCopy full SHA for 9cafeeb
docs/index.rst
@@ -72,7 +72,7 @@ Example Usage
72
es.indices.refresh(index="test-index")
73
74
res = es.search(index="test-index", body={"query": {"match_all": {}}})
75
- print("Got %d Hits:" % res['hits']['total'])
+ print("Got %d Hits:" % res['hits']['total']['value'])
76
for hit in res['hits']['hits']:
77
print("%(timestamp)s %(author)s: %(text)s" % hit["_source"])
78
0 commit comments