Bulk Insert documents - Getting BulkError

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)

Index names can only have lowercase letters, change it to eventdata and try again.

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.