# Multi field mapping as a default

**URL:** <https://discuss.elastic.co/t/multi-field-mapping-as-a-default/15941>\
**Category:** Elasticsearch\
**Created:** [February 21, 2014, 7:41am UTC](https://discuss.elastic.co/t/multi-field-mapping-as-a-default/15941 "2014-02-21T07:41:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthias\_Richter](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matthias_richter/32/1788_2.png) [@Matthias\_Richter](https://discuss.elastic.co/u/Matthias_Richter)\
**Post date:** [February 21, 2014, 7:41am UTC](https://discuss.elastic.co/t/multi-field-mapping-as-a-default/15941/1 "2014-02-21T07:41:35Z")

</div>

We have customers creating documents with arbitrary fields and we need to  
both analyze and sort them on request. I wonder if there is a chance to  
configure that for every field of this documents type a multi field mapping  
is created, with an untouched version and an analyzed version? Like  
changing the default dynamic mapping to a multi field dynamic mapping type.  
Any ideas?

Thanks

matthias

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/781dfcaf-e8af-4b58-abb8-80beee554700%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/781dfcaf-e8af-4b58-abb8-80beee554700%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Binh\_Ly](https://discuss.elastic.co/u/Binh_Ly)\
**Post date:** [February 21, 2014, 1:23pm UTC](https://discuss.elastic.co/t/multi-field-mapping-as-a-default/15941/2 "2014-02-21T13:23:12Z")

</div>

You can use dynamic templates in your mappings (examples shown on the link  
below):

[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-root-object-type.html#\_dynamic\_templates](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-root-object-type.html#_dynamic_templates)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d2f2fa1d-429d-4bca-828f-0204a1e6b5f9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d2f2fa1d-429d-4bca-828f-0204a1e6b5f9%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 1:48am UTC](https://discuss.elastic.co/t/multi-field-mapping-as-a-default/15941/3 "2017-07-06T01:48:22Z")

</div>


