# Template mapping with one field

**URL:** <https://discuss.elastic.co/t/template-mapping-with-one-field/290311>\
**Category:** Kibana\
**Tags:** docker, windows\
**Created:** [November 26, 2021, 4:11pm UTC](https://discuss.elastic.co/t/template-mapping-with-one-field/290311 "2021-11-26T16:11:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SRIGURU\_VEL](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sriguru_vel/32/88656_2.png) [@SRIGURU\_VEL](https://discuss.elastic.co/u/SRIGURU_VEL)\
**Post date:** [November 26, 2021, 4:11pm UTC](https://discuss.elastic.co/t/template-mapping-with-one-field/290311/1 "2021-11-26T16:11:14Z")

</div>

Hi Experts,

We are using multi fields Template mapping for some fields. example:- we are using attribute1 to attribute15 fields...for this we are set mapping for all individual fields with same property and data type. Now my question is How to map this fields with only one mapping field and property.  
I need like attribute\* will set for all attribute1,attribute2...attribute15.

thanks in advance  
Sriguruvel.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [November 28, 2021, 3:57am UTC](https://discuss.elastic.co/t/template-mapping-with-one-field/290311/2 "2021-11-28T03:57:06Z")

</div>

Perhaps take a look at

> **[Dynamic templates | Elasticsearch Guide \[7.15\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic-templates.html)**

More specifically...

[Match and unmatch](https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic-templates.html#match-unmatch)

Which is designed for your use case

---

<div class="post-metadata">

**Author:** ![SRIGURU\_VEL](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sriguru_vel/32/88656_2.png) [@SRIGURU\_VEL](https://discuss.elastic.co/u/SRIGURU_VEL)\
**Post date:** [November 29, 2021, 7:18am UTC](https://discuss.elastic.co/t/template-mapping-with-one-field/290311/3 "2021-11-29T07:18:41Z")

</div>

thanks @stephenb .

---

<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:** [December 27, 2021, 7:19am UTC](https://discuss.elastic.co/t/template-mapping-with-one-field/290311/4 "2021-12-27T07:19:06Z")

</div>

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