I wish to use the Bulk-API option with ElasticSearch-py. I try to use the bulk-api with this example:
from elasticsearch import Elasticsearch
es = Elasticsearch()
doc ={.....}
result = es.bulk(index="my_index", doc_type="my_doc_type", body=doc)
My index and my doc type is good but, I've got this error:
WARNING:elasticsearch:POST /my_index/my_doc_type/_bulk [status:500 request:0.002s]
Why i've got this error ? Thanks in advance.
Update
after some debugging, I manage to display this error:
{"error":"ActionRequestValidationException[Validation Failed: 1: no requests added;]","status":500}