# Root mapping definition has unsupported parameters when creating custom index

**URL:** <https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters-when-creating-custom-index/240690>\
**Category:** Elasticsearch\
**Created:** [July 10, 2020, 11:32am UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters-when-creating-custom-index/240690 "2020-07-10T11:32:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinci](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@vinci](https://discuss.elastic.co/u/vinci)\
**Post date:** [July 10, 2020, 11:32am UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters-when-creating-custom-index/240690/1 "2020-07-10T11:32:23Z")

</div>

Hello,

I'm following an elasticsearch course on linux academy where the instruction creates a custom index in the dev tools of kibana.  
He's using version 6, but I'm using version 7, so I'm not sure if the problem is related to that, but this is what I'm trying to create, and it doesn't work:

```auto
PUT my_index
{
  "aliases": {
    "my_alias": {}
  },
  "mappings": {
    "my_type" : {
      "properties": {
        "geo": {
          "properties": {
            "coordinates": {
              "type": "geo_point"
            }
          }
        }
      }
    }
  },
  "settings": {
    "number_of_shards": 1,
    "number_of_replicas": 2
  }
}

```

When I do that, I get the following error:

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "mapper_parsing_exception",
        "reason" : "Root mapping definition has unsupported parameters: [my_type : {properties={geo={properties={coordinates={type=geo_point}}}}}]"
      }
    ],
    "type" : "mapper_parsing_exception",
    "reason" : "Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [my_type : {properties={geo={properties={coordinates={type=geo_point}}}}}]",
    "caused_by" : {
      "type" : "mapper_parsing_exception",
      "reason" : "Root mapping definition has unsupported parameters: [my_type : {properties={geo={properties={coordinates={type=geo_point}}}}}]"
    }
  },
  "status" : 400
}

```

Any ideas why that is?

Thanks!

---

<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:** [July 10, 2020, 12:09pm UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters-when-creating-custom-index/240690/2 "2020-07-10T12:09:02Z")

</div>

Try

```
PUT my_index
{
  "aliases": {
    "my_alias": {}
  },
  "mappings": {
    
      "properties": {
        "geo": {
          "properties": {
            "coordinates": {
              "type": "geo_point"
            }
          }
        }
      
    }
  },
  "settings": {
    "number_of_shards": 1,
    "number_of_replicas": 2
  }
}
```

---

<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 7, 2020, 12:09pm UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters-when-creating-custom-index/240690/3 "2020-08-07T12:09:10Z")

</div>

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