# Mask filed mapping

**URL:** <https://discuss.elastic.co/t/mask-filed-mapping/49891>\
**Category:** Elasticsearch\
**Created:** [May 12, 2016, 11:24am UTC](https://discuss.elastic.co/t/mask-filed-mapping/49891 "2016-05-12T11:24:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max\_Just](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@Max\_Just](https://discuss.elastic.co/u/Max_Just)\
**Post date:** [May 12, 2016, 11:24am UTC](https://discuss.elastic.co/t/mask-filed-mapping/49891/1 "2016-05-12T11:24:16Z")

</div>

Hi, is it possible to use mask in mapping, for example

this:

```auto
"properties": {
        "field_one": {"type": "double"},
        "field_two": {"type": "double"},
        "field_three": {"type": "double"},
    }

```

rewrite to:

```auto
"properties": {
        "*": {"type": "double"},
    }

```

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [May 12, 2016, 11:56am UTC](https://discuss.elastic.co/t/mask-filed-mapping/49891/2 "2016-05-12T11:56:42Z")

</div>

Have a look at dynamic mapping templates here: [https://www.elastic.co/guide/en/elasticsearch/guide/2.x/custom-dynamic-mapping.html#dynamic-templates](https://www.elastic.co/guide/en/elasticsearch/guide/2.x/custom-dynamic-mapping.html#dynamic-templates)

Hope that helps

---

<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 5, 2017, 10:52pm UTC](https://discuss.elastic.co/t/mask-filed-mapping/49891/3 "2017-07-05T22:52:07Z")

</div>

Closed on July 5, 2017, 10:52pm UTC


