# PUT Mapping removes metadata from index

**URL:** <https://discuss.elastic.co/t/put-mapping-removes-metadata-from-index/91794>\
**Category:** Elasticsearch\
**Created:** [July 4, 2017, 3:12pm UTC](https://discuss.elastic.co/t/put-mapping-removes-metadata-from-index/91794 "2017-07-04T15:12:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaTTaDox](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattadox/32/21662_2.png) [@MaTTaDox](https://discuss.elastic.co/u/MaTTaDox)\
**Post date:** [July 4, 2017, 3:12pm UTC](https://discuss.elastic.co/t/put-mapping-removes-metadata-from-index/91794/1 "2017-07-04T15:12:57Z")

</div>

Hey,  
we have a problem here.  
After we make a PUT mapping, it removes our `_meta` Field from the mapping.  
Is this normal? Can we prevent this?

Bevore:

```auto
{
    "foo": {
        "mappings": {
            "bar": {
                "_meta": {
                    "foo": "bar"
                },
                "properties": {
...

```

After:

```auto
{
    "foo": {
        "mappings": {
            "bar": {
                "properties": {
...

```

Sample Request:

```auto
PUT /foo/_mapping/bar HTTP/1.1
Content-Type: application/json
Host: xxx
X-Amz-Date: xxx
Authorization: xxx

{  
 "properties":{  
 }
}

```

We running on version 2.3 on AWS

Thanks helping me,  
Dominik Malsch

---

<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:** [August 1, 2017, 3:13pm UTC](https://discuss.elastic.co/t/put-mapping-removes-metadata-from-index/91794/2 "2017-08-01T15:13:10Z")

</div>

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