# Removal of mapping types question

**URL:** <https://discuss.elastic.co/t/removal-of-mapping-types-question/173010>\
**Category:** Elasticsearch\
**Created:** [March 19, 2019, 4:16pm UTC](https://discuss.elastic.co/t/removal-of-mapping-types-question/173010 "2019-03-19T16:16:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oscar\_Sanchez\_Sanche](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oscar_sanchez_sanche/32/36678_2.png) [@Oscar\_Sanchez\_Sanche](https://discuss.elastic.co/u/Oscar_Sanchez_Sanche)\
**Post date:** [March 19, 2019, 4:16pm UTC](https://discuss.elastic.co/t/removal-of-mapping-types-question/173010/1 "2019-03-19T16:16:49Z")

</div>

Hi there, per [https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html#\_schedule\_for\_removal\_of\_mapping\_types](https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html#_schedule_for_removal_of_mapping_types)

I just wanted to quickly ask, is the custom field solution going to be the way to move forward (as well as the index per document) ?

We are going to build a social network integration and would like to know this for the sake of future compatibility with elasticsearch. My guess is since this is a custom field, this should not be a problem. But i guess it is better to doublecheck

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [March 20, 2019, 8:21am UTC](https://discuss.elastic.co/t/removal-of-mapping-types-question/173010/2 "2019-03-20T08:21:28Z")

</div>

The custom type field remains a valid approach. You just need to ensure you keep the number of fields in your mapping at a reasonable size (or maybe go with two indices).

Hope that helps!

--Alex

---

<div class="post-metadata">

**Author:** ![Oscar\_Sanchez\_Sanche](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oscar_sanchez_sanche/32/36678_2.png) [@Oscar\_Sanchez\_Sanche](https://discuss.elastic.co/u/Oscar_Sanchez_Sanche)\
**Post date:** [March 21, 2019, 1:49pm UTC](https://discuss.elastic.co/t/removal-of-mapping-types-question/173010/3 "2019-03-21T13:49:50Z")

</div>

Thank you very much @spinscale, we are moving forward modelling how our data should look. One last question if you don't mind, we should put just one mapping for all types of data we are going to be using, correct?

Thanks again and hope you have a good day. 🙂

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [March 22, 2019, 12:28pm UTC](https://discuss.elastic.co/t/removal-of-mapping-types-question/173010/4 "2019-03-22T12:28:16Z")

</div>

yes, I'd always prefer preconfiguring the mapping for your documents instead of going with dynamic mapping.

---

<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:** [April 19, 2019, 12:28pm UTC](https://discuss.elastic.co/t/removal-of-mapping-types-question/173010/5 "2019-04-19T12:28:17Z")

</div>

Closed on April 19, 2019, 12:28pm UTC

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