# What does object datatype mapping with value parameter mean?

**URL:** <https://discuss.elastic.co/t/what-does-object-datatype-mapping-with-value-parameter-mean/156580>\
**Category:** Elasticsearch\
**Created:** [November 14, 2018, 5:16am UTC](https://discuss.elastic.co/t/what-does-object-datatype-mapping-with-value-parameter-mean/156580 "2018-11-14T05:16:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jun\_Zhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jun_zhang/32/25863_2.png) [@Jun\_Zhang](https://discuss.elastic.co/u/Jun_Zhang)\
**Post date:** [November 14, 2018, 5:16am UTC](https://discuss.elastic.co/t/what-does-object-datatype-mapping-with-value-parameter-mean/156580/1 "2018-11-14T05:16:28Z")

</div>

I found following settings in my index mapping, it was created by metricbeat. what does value prarameter mean?

```
            "prophet": {
              "properties": {
                "4paradigm": {
                  "properties": {
                    "com/addon": {
                      "type": "keyword",
                      "ignore_above": 1024
                    },
                    "com/system": {
                      "type": "keyword",
                      "ignore_above": 1024
                    }
                  }
                },
                "value": {
                  "type": "keyword",
                  "ignore_above": 1024
                }
              }
            },
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 14, 2018, 6:05am UTC](https://discuss.elastic.co/t/what-does-object-datatype-mapping-with-value-parameter-mean/156580/2 "2018-11-14T06:05:44Z")

</div>

It's the name of a field that might exist in your json document. But only you might know the answer as we don't know how you created the mapping or how your documents look like.

---

<div class="post-metadata">

**Author:** ![Jun\_Zhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jun_zhang/32/25863_2.png) [@Jun\_Zhang](https://discuss.elastic.co/u/Jun_Zhang)\
**Post date:** [November 14, 2018, 6:26am UTC](https://discuss.elastic.co/t/what-does-object-datatype-mapping-with-value-parameter-mean/156580/3 "2018-11-14T06:26:04Z")

</div>

@dadoonet thanks for answer.

The mapping was created by metricbeat automatically. But, according to [Object field type | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/object.html) , object datatype doesn't have value parameter.

when metricbeat push event to elasticsearch, it printed following warn log :

> {"type":"mapper\_parsing\_exception","reason":"failed to parse [docker.container.labels.prophet]","caused\_by":{"type":"illegal\_state\_exception","reason":"Can't get text on a START\_OBJECT at 1:1998"}}

---

<div class="post-metadata">

**Author:** ![Jun\_Zhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jun_zhang/32/25863_2.png) [@Jun\_Zhang](https://discuss.elastic.co/u/Jun_Zhang)\
**Post date:** [November 14, 2018, 6:28am UTC](https://discuss.elastic.co/t/what-does-object-datatype-mapping-with-value-parameter-mean/156580/4 "2018-11-14T06:28:44Z")

</div>

I tested with following request, elasticsearch refused correctly，so I wonder why metricbeat created that mapping successfully.

```
PUT test
{
    "settings" : {
        "number_of_shards" : 1,
        "number_of_replicas": 0
    },
    "mappings" : {
        "_doc" : {
            "properties" : {
                "test" : { 
                  "properties": {
                    "name": {"type": "keyword"},
                    "aget": {"type": "long"}
                  },
                  "value": {
                    "type": "keyword"
                  }
                }
            }
        }
    }
}

```

ES Responsed：

```
{
  "error": {
    "root_cause": [
      {
        "type": "mapper_parsing_exception",
        "reason": "Mapping definition for [test] has unsupported parameters: [value : {type=keyword}]"
      }
    ],
    "type": "mapper_parsing_exception",
    "reason": "Failed to parse mapping [_doc]: Mapping definition for [test] has unsupported parameters: [value : {type=keyword}]",
    "caused_by": {
      "type": "mapper_parsing_exception",
      "reason": "Mapping definition for [test] has unsupported parameters: [value : {type=keyword}]"
    }
  },
  "status": 400
}
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 14, 2018, 7:48am UTC](https://discuss.elastic.co/t/what-does-object-datatype-mapping-with-value-parameter-mean/156580/5 "2018-11-14T07:48:34Z")

</div>

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

This is the icon to use if you are not using markdown format:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e6e239431ec2d71cbf1beef741f2e93e7cc762c.jpg)

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.  
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.  
Please update your post.

Here I guess that `value` is misplaced and should be at the same level as `aget`.

---

<div class="post-metadata">

**Author:** ![Jun\_Zhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jun_zhang/32/25863_2.png) [@Jun\_Zhang](https://discuss.elastic.co/u/Jun_Zhang)\
**Post date:** [November 14, 2018, 9:51am UTC](https://discuss.elastic.co/t/what-does-object-datatype-mapping-with-value-parameter-mean/156580/6 "2018-11-14T09:51:27Z")

</div>

sorry, @dadoonet! updated.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 14, 2018, 1:45pm UTC](https://discuss.elastic.co/t/what-does-object-datatype-mapping-with-value-parameter-mean/156580/7 "2018-11-14T13:45:46Z")

</div>

Try:

```auto
PUT test
{
    "settings" : {
        "number_of_shards" : 1,
        "number_of_replicas": 0
    },
    "mappings" : {
        "_doc" : {
            "properties" : {
                "test" : { 
                  "properties": {
                    "name": {"type": "keyword"},
                    "aget": {"type": "long"},
                    "value": { "type": "keyword" }
                  }
                }
            }
        }
    }
}

```

---

<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 12, 2018, 1:45pm UTC](https://discuss.elastic.co/t/what-does-object-datatype-mapping-with-value-parameter-mean/156580/8 "2018-12-12T13:45:47Z")

</div>

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