# Mapping field meta not working

**URL:** <https://discuss.elastic.co/t/mapping-field-meta-not-working/233696>\
**Category:** Elasticsearch\
**Created:** [May 21, 2020, 8:39am UTC](https://discuss.elastic.co/t/mapping-field-meta-not-working/233696 "2020-05-21T08:39:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![suspai](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@suspai](https://discuss.elastic.co/u/suspai)\
**Post date:** [May 21, 2020, 8:39am UTC](https://discuss.elastic.co/t/mapping-field-meta-not-working/233696/1 "2020-05-21T08:39:33Z")

</div>

Hi,

I need to create a meta data for the field mapping as mentioned in this url: [https://www.elastic.co/guide/en/elasticsearch/reference/7.x/mapping-field-meta.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/mapping-field-meta.html)

But it gives a 400 error, as below. Please let me know what is wrong in the below query?

My request

```auto
PUT my_index
{
  "mappings": {
    "properties": {
      "latency": {
        "type": "long",
        "meta": {
          "unit": "ms"
        }
      }
    }
  }
}

```

Response

```auto
{
  "error": {
    "root_cause": [
      {
        "type": "mapper_parsing_exception",
        "reason": "Mapping definition for [latency] has unsupported parameters: [meta : {unit=ms}]"
      }
    ],
    "type": "mapper_parsing_exception",
    "reason": "Failed to parse mapping [_doc]: Mapping definition for [latency] has unsupported parameters: [meta : {unit=ms}]",
    "caused_by": {
      "type": "mapper_parsing_exception",
      "reason": "Mapping definition for [latency] has unsupported parameters: [meta : {unit=ms}]"
    }
  },
  "status": 400
}

```

Regards,  
Sushama

---

<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:** [June 18, 2020, 8:39am UTC](https://discuss.elastic.co/t/mapping-field-meta-not-working/233696/2 "2020-06-18T08:39:52Z")

</div>

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