# Multiple type in one index in ES 6.1

**URL:** https://discuss.elastic.co/t/multiple-type-in-one-index-in-es-6-1/116803
**Category:** Elasticsearch
**Created:** [January 24, 2018, 5:53am UTC](https://discuss.elastic.co/t/multiple-type-in-one-index-in-es-6-1/116803 "2018-01-24T05:53:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Vishal\_Chaurasia](https://avatars.discourse-cdn.com/v4/letter/v/ba8739/32.png) [@Vishal\_Chaurasia](https://discuss.elastic.co/u/Vishal_Chaurasia)
#### Post date: [January 24, 2018, 5:53am UTC](https://discuss.elastic.co/t/multiple-type-in-one-index-in-es-6-1/116803/1 "2018-01-24T05:53:56Z")

</div>

can we define multiple types in one index in elasticsearch version 6.1.  
When I am trying to define mappings of more than 1 types it results in following error-  
Rejecting mapping update to [contents-en] as the final mapping would have more than 1 type: [topic, page]

---

<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: [January 24, 2018, 6:05am UTC](https://discuss.elastic.co/t/multiple-type-in-one-index-in-es-6-1/116803/2 "2018-01-24T06:05:26Z")

</div>

No. Not for new indices.

---

<div class="post-metadata">

### Author: ![val](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/val/32/138203_2.png) [@val](https://discuss.elastic.co/u/val)
#### Post date: [January 24, 2018, 6:05am UTC](https://discuss.elastic.co/t/multiple-type-in-one-index-in-es-6-1/116803/3 "2018-01-24T06:05:32Z")

</div>

No you cannot have [several types within a single index](https://www.elastic.co/guide/en/elasticsearch/reference/6.1/removal-of-types.html) as of ES 6.0.0, so the error message you're receiving is normal.

Consult the above link for ideas on how to solve this, most probably you need to have two indices.

---

<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: [February 21, 2018, 6:05am UTC](https://discuss.elastic.co/t/multiple-type-in-one-index-in-es-6-1/116803/4 "2018-02-21T06:05:45Z")

</div>

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