Getting DocumentAlreadyExistsEngineException?


I am using Rabbitmq river for creating an index.i am using one index
idx_masterdatabase,having many index type.if any index type will exist i
will delete that index type and create new index with different data.for
deleting an index type i am using delete mapping <
Elasticsearch Platform — Find real-time answers at scale | Elastic>.used
java code gist as ,also i got the log message on server
console that is remove_mapping [type_test8*]*,but when i'm sending another
request to create index with same index type name i got the following
exception which i mention on following gist <DocumentAlreadyExistsEngineException · GitHub


  • *please send me some solution for above exception.