A simple python lib for Elasticsearch 5
Example:
es=GElasticsearch()
es.setURL("http:https://127.0.0.1:9200")
es.createIndex("test")
es.indexSingle("test", "test", {'id': '1', 'email': '[email protected]'})
dataDict=[
{'id': '1', 'email': '[email protected]'},
{'id': '2', 'email': '[email protected]'},
]
es.indexBulk("test", "test", dataDict)
es.deleteSingle("test", "test", "1")
es.deleteIndex("test")