Hello,
I am new to inserting bulk documents into ElasticSearch using Python
When I am trying to bulk insert documents, I am getting "elasticsearch.helpers.BulkIndexError: 100 document(s) failed to index."
The index doesnt exist yet and I was thinking that the bulk action will create an index if the index doesnt exist.
Sample Code:
actions = [
{
"_index": "eventData",
"_source": d,
} for d in data
]
success, errors = bulk(client, actions, stats_only=False)
print(success, errors)