# Updating index with Kibana Dev Tools with geo\_point

**URL:** <https://discuss.elastic.co/t/updating-index-with-kibana-dev-tools-with-geo-point/158399>\
**Category:** Kibana\
**Created:** [November 27, 2018, 6:26pm UTC](https://discuss.elastic.co/t/updating-index-with-kibana-dev-tools-with-geo-point/158399 "2018-11-27T18:26:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Papel](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert\_Papel](https://discuss.elastic.co/u/Robert_Papel)\
**Post date:** [November 27, 2018, 6:26pm UTC](https://discuss.elastic.co/t/updating-index-with-kibana-dev-tools-with-geo-point/158399/1 "2018-11-27T18:26:37Z")

</div>

I have this index:

```
{
"example_index_name": {
"aliases": {},
"mappings": {
  "lambda-type": {
    "properties": {
      "document": {
        "properties": {
          "Entities": {
            "properties": {
              "BeginOffset": {
                "type": "long"
              },
              "EndOffset": {
                "type": "long"
              },
              "Score": {
                "type": "float"
              },
              "Text": {
                "type": "text",
                "fields": {
                  "keyword": {
                    "type": "keyword",
                    "ignore_above": 256
                  }
                }
              },
              "Type": {
                "type": "text",
                "fields": {
                  "keyword": {
                    "type": "keyword",
                    "ignore_above": 256
                  }
                }
              },
           **"lat": {
                "type": "float" **
              },
              "lng": {
           **"type": "float"**
              }
            }
          },
          "File": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },

```

The `**`'s show the problem area - I have latitude and longitude, but Kibana will not recognize the numbers because they are not in the `geo_point` format. I've been trying to update them in Kibana Dev Tools with `PUT example_index_name/_mapping/_doc`.

I get this error:

```
{
"error": {
"root_cause": [
  {
    "type": "mapper_parsing_exception",
    "reason": "Root mapping definition has unsupported parameters: 
      ...etc

```

When I try to update `lat` & `lng` type to `geo_point`, I just get an error. I'm following [Kibana docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html). How do I update this? I feel like the coordinates are in the wrong section of the index.

---

<div class="post-metadata">

**Author:** ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)\
**Post date:** [November 27, 2018, 9:18pm UTC](https://discuss.elastic.co/t/updating-index-with-kibana-dev-tools-with-geo-point/158399/2 "2018-11-27T21:18:59Z")

</div>

Can you paste the full error message?

for `geo_point` to work, you need to have a single field that contains the `lat` and `lng` fields. So instead of `lat` being type `geo_point` and `lng` being `geo_point`, you instead define a field, let's call it `location`, and describe that as `geo_point`:

```auto
{
"example_index_name": {
"aliases": {},
"mappings": {
  "lambda-type": {
    "properties": {
      "document": {
        "properties": {
          "Entities": {
            "properties": {
              "BeginOffset": {
                "type": "long"
              },
              "EndOffset": {
                "type": "long"
              },
              "Score": {
                "type": "float"
              },
              "Text": {
                "type": "text",
                "fields": {
                  "keyword": {
                    "type": "keyword",
                    "ignore_above": 256
                  }
                }
              },
              "Type": {
                "type": "text",
                "fields": {
                  "keyword": {
                    "type": "keyword",
                    "ignore_above": 256
                  }
                }
              },
           **"location": {
                "type": "geo_point" **
              }
            }
          },
          "File": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          }
}

```

Then, you can index documents using something like `{ "location": { "lat": 123.45, "lng": 321.45} }`

---

<div class="post-metadata">

**Author:** ![Robert\_Papel](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert\_Papel](https://discuss.elastic.co/u/Robert_Papel)\
**Post date:** [November 28, 2018, 2:37pm UTC](https://discuss.elastic.co/t/updating-index-with-kibana-dev-tools-with-geo-point/158399/3 "2018-11-28T14:37:04Z")

</div>

Right - I made the modification you suggested (didn't really need the full error message, you nailed it), and I get some dots on a map, but not a map background?

When I inspect the page, I get this:

```
setting active api to [es_5_0]
1.png:1 GET https://example.com/v1/default/2/1/1.png 404 (Not Found)

```

And a repeating list os such 404 Not Founds.

BUT then I changed the Base Layer Settings and the map came up. Rollercoaster of excitement over here

---

<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 26, 2018, 2:37pm UTC](https://discuss.elastic.co/t/updating-index-with-kibana-dev-tools-with-geo-point/158399/4 "2018-12-26T14:37:18Z")

</div>

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