# Type Mapping Changed from geo\_point to floats

**URL:** https://discuss.elastic.co/t/type-mapping-changed-from-geo-point-to-floats/129570
**Category:** Elasticsearch
**Created:** [April 25, 2018, 8:53pm UTC](https://discuss.elastic.co/t/type-mapping-changed-from-geo-point-to-floats/129570 "2018-04-25T20:53:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![riebo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/riebo/32/30493_2.png) [@riebo](https://discuss.elastic.co/u/riebo)
#### Post date: [April 25, 2018, 8:53pm UTC](https://discuss.elastic.co/t/type-mapping-changed-from-geo-point-to-floats/129570/1 "2018-04-25T20:53:11Z")

</div>

Somehow a type mapping for my index automatically changed from geo\_point to float properties representing lat, lon. Using ES 6. No reindex operation was performed, but the type somehow got changed. Is there any way to prevent this and determine how it happened?

---

<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: [April 26, 2018, 6:18am UTC](https://discuss.elastic.co/t/type-mapping-changed-from-geo-point-to-floats/129570/2 "2018-04-26T06:18:19Z")

</div>

Most likely when you reindexed in a new index, you did not provide the mapping so elasticsearch applied the default dynamic templates.

You need first to create the index with the proper mapping before running reindex.

---

<div class="post-metadata">

### Author: ![riebo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/riebo/32/30493_2.png) [@riebo](https://discuss.elastic.co/u/riebo)
#### Post date: [April 26, 2018, 1:05pm UTC](https://discuss.elastic.co/t/type-mapping-changed-from-geo-point-to-floats/129570/3 "2018-04-26T13:05:09Z")

</div>

Thank you, but I didn't create new index or reindex. The index was created months ago with the proper mapping for geo\_point. The geo\_point was certainly defined and working for geo distance queries that are run thousands of times per day. The only thing unusual was high CPU and JVM memory pressure around the time that the mapping changed.

---

<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: [April 26, 2018, 4:41pm UTC](https://discuss.elastic.co/t/type-mapping-changed-from-geo-point-to-floats/129570/4 "2018-04-26T16:41:04Z")

</div>

Oh, I read it wrong.

> The index was created months ago with the proper mapping for geo\_point.

Then a mapping can not change normally.

Not sure what happened then.

---

<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: [May 24, 2018, 4:41pm UTC](https://discuss.elastic.co/t/type-mapping-changed-from-geo-point-to-floats/129570/5 "2018-05-24T16:41:06Z")

</div>

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