# Create multiple type in one index

**URL:** <https://discuss.elastic.co/t/create-multiple-type-in-one-index/191528>\
**Category:** Elasticsearch\
**Created:** [July 21, 2019, 4:18pm UTC](https://discuss.elastic.co/t/create-multiple-type-in-one-index/191528 "2019-07-21T16:18:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdelmadjid](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Abdelmadjid](https://discuss.elastic.co/u/Abdelmadjid)\
**Post date:** [July 21, 2019, 4:18pm UTC](https://discuss.elastic.co/t/create-multiple-type-in-one-index/191528/1 "2019-07-21T16:18:46Z")

</div>

Hello everyone  
whene i create a multiple type in the same index in elasticsearch version 7.  
2.0 i get these error  
{  
"error": {  
"root\_cause": [  
{  
"type": "illegal\_argument\_exception",  
"reason": "Rejecting mapping update to [business] as the final mapping would have more than 1 type: [employee, building]"  
}  
],  
"type": "illegal\_argument\_exception",  
"reason": "Rejecting mapping update to [business] as the final mapping would have more than 1 type: [employee, building]"  
},  
"status": 400  
}  
can you help me and told to me how can i create a multiple type in the same index  
thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 21, 2019, 5:33pm UTC](https://discuss.elastic.co/t/create-multiple-type-in-one-index/191528/2 "2019-07-21T17:33:55Z")

</div>

You can't.  
One type per index only.

Read [https://www.elastic.co/blog/removal-of-mapping-types-elasticsearch](https://www.elastic.co/blog/removal-of-mapping-types-elasticsearch)

---

<div class="post-metadata">

**Author:** ![Abdelmadjid](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Abdelmadjid](https://discuss.elastic.co/u/Abdelmadjid)\
**Post date:** [July 23, 2019, 10:41am UTC](https://discuss.elastic.co/t/create-multiple-type-in-one-index/191528/4 "2019-07-23T10:41:26Z")

</div>

thank's

---

<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:** [August 20, 2019, 10:41am UTC](https://discuss.elastic.co/t/create-multiple-type-in-one-index/191528/5 "2019-08-20T10:41:29Z")

</div>

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