# ES6.0 typeless strucutre help

**URL:** <https://discuss.elastic.co/t/es6-0-typeless-strucutre-help/93700>\
**Category:** Elasticsearch\
**Created:** [July 19, 2017, 6:37am UTC](https://discuss.elastic.co/t/es6-0-typeless-strucutre-help/93700 "2017-07-19T06:37:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_Ripshtos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amit_ripshtos/32/40400_2.png) [@Amit\_Ripshtos](https://discuss.elastic.co/u/Amit_Ripshtos)\
**Post date:** [July 19, 2017, 6:37am UTC](https://discuss.elastic.co/t/es6-0-typeless-strucutre-help/93700/1 "2017-07-19T06:37:14Z")

</div>

Hey guys,  
Currently, I have an index-per-day - and the index stores about 3 different types.  
I strucutred them like this:  
{  
"type": "my\_type",  
"my\_type": {...}  
}

Now, we can see ES6 and ES7 wants us to move to typeless, which means I will have 3 indices per day.  
However, as I aware of - having too much shards will make my searches slower.

So can you guys help me understand if having index-per-type is a good thing or not ? I will a lot more indices and a lot more of shards eventually.

Thanks!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 19, 2017, 6:41am UTC](https://discuss.elastic.co/t/es6-0-typeless-strucutre-help/93700/2 "2017-07-19T06:41:58Z")

</div>

We are removing `_type`, you can still have your own "type" field like you have.  
You just need to make sure you don't have mapping collisions.

---

<div class="post-metadata">

**Author:** ![Amit\_Ripshtos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amit_ripshtos/32/40400_2.png) [@Amit\_Ripshtos](https://discuss.elastic.co/u/Amit_Ripshtos)\
**Post date:** [July 19, 2017, 6:45am UTC](https://discuss.elastic.co/t/es6-0-typeless-strucutre-help/93700/3 "2017-07-19T06:45:27Z")

</div>

Thanks for the comment.  
So you recommand us still have multiple data-types in same index for having less shards, just without the "\_type" thing?

I wanna get ready for ES7.0 now

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 19, 2017, 6:46am UTC](https://discuss.elastic.co/t/es6-0-typeless-strucutre-help/93700/4 "2017-07-19T06:46:44Z")

</div>

No I am not recommending that, I am just saying what you can potentially do.

The other option is to have more indices with less shards, and to use weekly/monthly indices for smaller datasets.

---

<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 16, 2017, 6:46am UTC](https://discuss.elastic.co/t/es6-0-typeless-strucutre-help/93700/5 "2017-08-16T06:46:54Z")

</div>

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