# Getting DocumentAlreadyExistsEngineException?

**URL:** https://discuss.elastic.co/t/getting-documentalreadyexistsengineexception/7536
**Category:** Elasticsearch
**Created:** [May 2, 2012, 12:07pm UTC](https://discuss.elastic.co/t/getting-documentalreadyexistsengineexception/7536 "2012-05-02T12:07:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sam\_4](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sam\_4](https://discuss.elastic.co/u/Sam_4)
#### Post date: [May 2, 2012, 12:07pm UTC](https://discuss.elastic.co/t/getting-documentalreadyexistsengineexception/7536/1 "2012-05-02T12:07:41Z")

</div>

Hi

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](http://www.elasticsearch.org/guide/reference/api/admin-indices-delete-mapping.html)\>.used  
java code gist as  
[https://gist.github.com/2576109](https://gist.github.com/2576109) ,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](https://gist.github.com/2576048)

> .

- 
- 
- \*please send me some solution for above exception.

Thanks

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 3:30am UTC](https://discuss.elastic.co/t/getting-documentalreadyexistsengineexception/7536/2 "2017-07-06T03:30:21Z")

</div>


