Import


In [ ]:
from commonml import es

Create Reader


In [ ]:
list = es.reader(hosts=['localhost:9200'],
                 index='test_index',
                 source={"query":{"match_all":{}}})

Load


In [ ]:
for data in list:
    print(data)