I have multiple processes to write data to ES at the same time, also two processes may write the same key with different values at the same time, it caused the exception as foll
You could also plan for this by using the elastic search external versioning system and maintain the document versions manually as stated below