# Defining mutiple types for match\_mapping\_type

**URL:** <https://discuss.elastic.co/t/defining-mutiple-types-for-match-mapping-type/17144>\
**Category:** Elasticsearch\
**Created:** [April 23, 2014, 6:08am UTC](https://discuss.elastic.co/t/defining-mutiple-types-for-match-mapping-type/17144 "2014-04-23T06:08:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shahar\_Kedar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahar_kedar/32/1634_2.png) [@Shahar\_Kedar](https://discuss.elastic.co/u/Shahar_Kedar)\
**Post date:** [April 23, 2014, 6:08am UTC](https://discuss.elastic.co/t/defining-mutiple-types-for-match-mapping-type/17144/1 "2014-04-23T06:08:28Z")

</div>

Hi,

I want use multiple types for match\_mapping\_type when configuring a dynamic  
template. I've tried to following options, but none worked:

"match\_mapping\_type" : ["string", "integer", "long", "float", "double",  
"boolean"]

"match\_mapping\_type" : "string|integer|long|float|double|boolean"

I can always fallback to defining multiple templates, but it feels wrong.

Thanks,  
Shahar

--  
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/59e82c3a-9cf6-4cd6-937a-b9ff9b5b992b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/59e82c3a-9cf6-4cd6-937a-b9ff9b5b992b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:34am UTC](https://discuss.elastic.co/t/defining-mutiple-types-for-match-mapping-type/17144/2 "2017-07-06T01:34:09Z")

</div>


