# "mapper\_parsing\_exception" Geo Point

**URL:** <https://discuss.elastic.co/t/mapper-parsing-exception-geo-point/296160>\
**Category:** Kibana\
**Tags:** maps\
**Created:** [February 3, 2022, 9:15am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-geo-point/296160 "2022-02-03T09:15:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ethical20](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ethical20/32/68123_2.png) [@ethical20](https://discuss.elastic.co/u/ethical20)\
**Post date:** [February 3, 2022, 9:15am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-geo-point/296160/1 "2022-02-03T09:15:46Z")

</div>

Hi,

Can anyone tell why I'm getting an error here?

P.S: I'm Running latest ELK stack 7.17

This is what i'm pasting in dev's console

```auto
PUT /_template/storms
{
  "order": 0,
  "template": "storms*",
  "mappings": {
    "_default_": {
      "properties": {
        "location": {
          "type": "geo_point"
        }
      }
    }
  }
}

```

Here is the error I'm getting

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

```

Regards,

---

<div class="post-metadata">

**Author:** ![ethical20](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ethical20/32/68123_2.png) [@ethical20](https://discuss.elastic.co/u/ethical20)\
**Post date:** [February 3, 2022, 9:46am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-geo-point/296160/2 "2022-02-03T09:46:44Z")

</div>

UPDATE:

As I noticed that the _default_ is deprecated In version 7 and up, I've removed it but still got some warning.

> **[Removal of mapping types | Elasticsearch Guide \[7.17\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html)**

How can I update this to use index pattern?

```auto
PUT /_template/storms
{
  "order": 0,
  "template": "storms*",
  "mappings": {
    
      "properties": {
        "location": {
          "type": "geo_point"
        }
      }
    
  }
}

```

```auto
#! Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security.
#! Legacy index templates are deprecated in favor of composable templates.
#! Deprecated field [template] used, replaced by [index_patterns]
{
  "acknowledged" : true
}

```

I'm trying to implement this example which imports data from mysql to elastic but as i can see it is old and not updated.

[https://datascience-enthusiast.com/Miscellaneous/MySQL\_to\_ELK.html](https://datascience-enthusiast.com/Miscellaneous/MySQL_to_ELK.html)

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [February 3, 2022, 11:45am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-geo-point/296160/3 "2022-02-03T11:45:05Z")

</div>

> [@ethical20](#):
>
> `"template": "storms*",`

The warning just says `"template"` is deprecated and you have to use `"index_patterns":"storms*"` instead.

> **[Create or update index template API | Elasticsearch Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html)**

---

<div class="post-metadata">

**Author:** ![ethical20](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ethical20/32/68123_2.png) [@ethical20](https://discuss.elastic.co/u/ethical20)\
**Post date:** [February 16, 2022, 10:08am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-geo-point/296160/4 "2022-02-16T10:08:50Z")

</div>

Many thanks

---

<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:** [March 16, 2022, 10:09am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-geo-point/296160/5 "2022-03-16T10:09:04Z")

</div>

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