# Dynamic template mappings

**URL:** <https://discuss.elastic.co/t/dynamic-template-mappings/165861>\
**Category:** Elasticsearch\
**Created:** [January 26, 2019, 7:27pm UTC](https://discuss.elastic.co/t/dynamic-template-mappings/165861 "2019-01-26T19:27:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashokm](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@ashokm](https://discuss.elastic.co/u/ashokm)\
**Post date:** [January 26, 2019, 7:27pm UTC](https://discuss.elastic.co/t/dynamic-template-mappings/165861/1 "2019-01-26T19:27:50Z")

</div>

H All,

We have a bunch fields on index and we have a template defined for this index to define the mapping for these fields. However, we are adding few dynamic fields whose names prefix with a constant and name of the other fields.  
For example, in template if we have fields like first\_name, last\_name, sometimes dynamically we are adding op\_first\_name, op\_last\_name.. etc. Is there a way to specify mapping for these dynamic fields so that they inherit mapping from original fields. Such as op\_first\_name mapping is same as first\_name.. etch without explicitly specifying for each and every field.

We are on ES 6.5

Thank you  
Ashok

---

<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:** [February 23, 2019, 7:28pm UTC](https://discuss.elastic.co/t/dynamic-template-mappings/165861/2 "2019-02-23T19:28:00Z")

</div>

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