# Unable to create index with more that 1 type in 6.x

**URL:** <https://discuss.elastic.co/t/unable-to-create-index-with-more-that-1-type-in-6-x/106089>\
**Category:** Elasticsearch\
**Created:** [November 1, 2017, 7:17pm UTC](https://discuss.elastic.co/t/unable-to-create-index-with-more-that-1-type-in-6-x/106089 "2017-11-01T19:17:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pshroads](https://avatars.discourse-cdn.com/v4/letter/p/a88e57/32.png) [@pshroads](https://discuss.elastic.co/u/pshroads)\
**Post date:** [November 1, 2017, 7:17pm UTC](https://discuss.elastic.co/t/unable-to-create-index-with-more-that-1-type-in-6-x/106089/1 "2017-11-01T19:17:02Z")

</div>

I'm on elasticsearch 6.0.0-rc2 and I've found I've not able to create an index with multiple types:

```auto
PUT twitter
{}

PUT twitter/_mapping/user 
{
  "properties": {
    "name": {
      "type": "string"
    }
  }
}

PUT twitter/_mapping/user2 
{
  "properties": {
    "name": {
      "type": "string"
    }
  }
}

```

Returns

```auto
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "Rejecting mapping update to [twitter] as the final mapping would have more than 1 type: [user2, user]"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "Rejecting mapping update to [twitter] as the final mapping would have more than 1 type: [user2, user]"
  },
  "status": 400
}

```

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 1, 2017, 7:25pm UTC](https://discuss.elastic.co/t/unable-to-create-index-with-more-that-1-type-in-6-x/106089/2 "2017-11-01T19:25:10Z")

</div>

This is expected as per [the list of breaking changes for Elasticsearch 6.0](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/breaking-changes-6.0.html). You can read more about it in [this blog post](https://www.elastic.co/blog/index-type-parent-child-join-now-future-in-elasticsearch).

---

<div class="post-metadata">

**Author:** ![pshroads](https://avatars.discourse-cdn.com/v4/letter/p/a88e57/32.png) [@pshroads](https://discuss.elastic.co/u/pshroads)\
**Post date:** [November 1, 2017, 7:35pm UTC](https://discuss.elastic.co/t/unable-to-create-index-with-more-that-1-type-in-6-x/106089/3 "2017-11-01T19:35:20Z")

</div>

Thanks, I hadn't seen that.

---

<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:** [November 29, 2017, 7:35pm UTC](https://discuss.elastic.co/t/unable-to-create-index-with-more-that-1-type-in-6-x/106089/4 "2017-11-29T19:35:25Z")

</div>

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