This commit is contained in:
Honza Kral
2013-09-24 19:17:45 +02:00
parent 6c026ecabf
commit 8b7c7190f1
+1 -1
View File
@@ -33,7 +33,7 @@ Example Usage
res = es.get(index="test-index", doc_type='tweet', id=1)
print(res['_source'])
es.refresh(index="test-index")
es.indices.refresh(index="test-index")
res = es.search(index="test-index", body={"query": {"match_all": {}}})
print("Got %d Hits:" % res['hits']['total'])