In [ ]:
from commonml import es
In [ ]:
list = es.reader(hosts=['localhost:9200'],
index='test_index',
source={"query":{"match_all":{}}})
In [ ]:
for data in list:
print(data)