# Root mapping definition has unsupported parameters: \[\_size : {enabled=true}\]

**URL:** https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters-size-enabled-true/193971
**Category:** Elasticsearch
**Created:** [August 6, 2019, 9:40am UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters-size-enabled-true/193971 "2019-08-06T09:40:22Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![loknath\_sudhakar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loknath_sudhakar/32/51722_2.png) [@loknath\_sudhakar](https://discuss.elastic.co/u/loknath_sudhakar)
#### Post date: [August 6, 2019, 9:40am UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters-size-enabled-true/193971/1 "2019-08-06T09:40:22Z")

</div>

Hello,  
I have installed ES 6.5.4 in my cluster. Also installed Size plugin 6.5.4. After restarting the cluster, tried creating an index with mappings as follows:

```
PUT test_index/
{
 "mappings": { "my_type": {
         "_size": {
        "enabled": true
    },
    "properties": {
    "field1": {
        "type": "keyword"
      }
    }
   }
 }
}

```

But I got following error.

```
{
   "error": {
      "root_cause": [
     {
        "type": "mapper_parsing_exception",
        "reason": "Root mapping definition has unsupported parameters: [_size : {enabled=true}]"
     }
  ],
  "type": "mapper_parsing_exception",
  "reason": "Failed to parse mapping [unified]: Root mapping definition has unsupported parameters: [_size : {enabled=true}]",
  "caused_by": {
     "type": "mapper_parsing_exception",
     "reason": "Root mapping definition has unsupported parameters: [_size : {enabled=true}]"
  }
   },
   "status": 400
}

```

Any help would be greatly appreciated.

---

<div class="post-metadata">

### Author: ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)
#### Post date: [August 9, 2019, 4:52pm UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters-size-enabled-true/193971/2 "2019-08-09T16:52:48Z")

</div>

You need to install the mapper-size plugin.

```auto
sudo bin/elasticsearch-plugin install mapper-size

```

Then restart elasticsearch and you should be able to enable the \_size field.

---

<div class="post-metadata">

### Author: ![loknath\_sudhakar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loknath_sudhakar/32/51722_2.png) [@loknath\_sudhakar](https://discuss.elastic.co/u/loknath_sudhakar)
#### Post date: [August 10, 2019, 10:45am UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters-size-enabled-true/193971/3 "2019-08-10T10:45:51Z")

</div>

Hi Ryan,  
Thanks for the reply. I had already installed mapper-size plugin and restarted elasticsearch. But still I am getting the above error while trying to create the index.

---

<div class="post-metadata">

### Author: ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)
#### Post date: [August 11, 2019, 7:27pm UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters-size-enabled-true/193971/4 "2019-08-11T19:27:43Z")

</div>

Do you have the plugin installed on every node in your cluster? Could you please check the installed plugins? [https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-plugins.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-plugins.html)

---

<div class="post-metadata">

### Author: ![loknath\_sudhakar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loknath_sudhakar/32/51722_2.png) [@loknath\_sudhakar](https://discuss.elastic.co/u/loknath_sudhakar)
#### Post date: [August 13, 2019, 11:14am UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters-size-enabled-true/193971/5 "2019-08-13T11:14:05Z")

</div>

Hi Ryan,  
Yes, The plugin has been installed in all 40 nodes of the cluster.

 ![39%20PM](https://us1.discourse-cdn.com/elastic/original/3X/c/f/cfb2306abb367dc24e71df1a5c3114b5715a99c3.png)

---

<div class="post-metadata">

### Author: ![loknath\_sudhakar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loknath_sudhakar/32/51722_2.png) [@loknath\_sudhakar](https://discuss.elastic.co/u/loknath_sudhakar)
#### Post date: [August 28, 2019, 7:04am UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters-size-enabled-true/193971/6 "2019-08-28T07:04:22Z")

</div>

Any further help would be greatly appreciated.

---

<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: [September 25, 2019, 7:04am UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters-size-enabled-true/193971/7 "2019-09-25T07:04:26Z")

</div>

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