I am sending my data to Elasticsearch using python official elasticsearch client. I am sending data using below format:
es.index(index="test-index", doc_type='test', id=1, body=doc)
But I found for some of the data I am getting created= False which means data is not being created
I have tried adding retry logic, but everytime when I get the problem It is not even working after retry. For your information, I have added 5 sec interval between retry logic.
Would be great If anyone can recommend any better approach.