# Is there any limit in types of same indice in elasticsearch

**URL:** https://discuss.elastic.co/t/is-there-any-limit-in-types-of-same-indice-in-elasticsearch/81701
**Category:** Elasticsearch
**Created:** [April 9, 2017, 8:05am UTC](https://discuss.elastic.co/t/is-there-any-limit-in-types-of-same-indice-in-elasticsearch/81701 "2017-04-09T08:05:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![svarup](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@svarup](https://discuss.elastic.co/u/svarup)
#### Post date: [April 9, 2017, 8:05am UTC](https://discuss.elastic.co/t/is-there-any-limit-in-types-of-same-indice-in-elasticsearch/81701/1 "2017-04-09T08:05:57Z")

</div>

How many indice types we can create in the same indice, is there any limit or unlimited(means depends on storage space) especially in Elasticsearch 5.x?

---

<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: [April 9, 2017, 8:31am UTC](https://discuss.elastic.co/t/is-there-any-limit-in-types-of-same-indice-in-elasticsearch/81701/2 "2017-04-09T08:31:15Z")

</div>

There is a hard limit in the number of fields in an index. And we are thinking of removing types in the future.

So I'd either use one index per type or I would create within a single type different paths for inner types:

```
foo: {
},
bar: {
}

```

Where foo and bar are the "types"

Note that it will create some sparse fields.

---

<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: [May 7, 2017, 8:36am UTC](https://discuss.elastic.co/t/is-there-any-limit-in-types-of-same-indice-in-elasticsearch/81701/3 "2017-05-07T08:36:34Z")

</div>

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