# Geo\_shape, geo\_point - Can they be added on the fly?

**URL:** <https://discuss.elastic.co/t/geo-shape-geo-point-can-they-be-added-on-the-fly/258910>\
**Category:** Elasticsearch\
**Created:** [December 16, 2020, 7:48pm UTC](https://discuss.elastic.co/t/geo-shape-geo-point-can-they-be-added-on-the-fly/258910 "2020-12-16T19:48:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vmanohar1](https://avatars.discourse-cdn.com/v4/letter/v/e56c9b/32.png) [@vmanohar1](https://discuss.elastic.co/u/vmanohar1)\
**Post date:** [December 16, 2020, 7:48pm UTC](https://discuss.elastic.co/t/geo-shape-geo-point-can-they-be-added-on-the-fly/258910/1 "2020-12-16T19:48:37Z")

</div>

```auto
If the original index has just lat/lon values, is it possible to create additional columns of type geo_shape and geo_point using values from lat/lon column in the elastic query itself?
 I am curious to know.. Thanks.

```

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [December 16, 2020, 8:32pm UTC](https://discuss.elastic.co/t/geo-shape-geo-point-can-they-be-added-on-the-fly/258910/2 "2020-12-16T20:32:35Z")

</div>

I don't believe they can be added inside a query. The mapping itself needs to change so I think the only way is to remap the index.

Create a new index.  
Include new mapping for that field.  
Reindex to new index.

This new index will have the correct mapping.

---

<div class="post-metadata">

**Author:** ![vmanohar1](https://avatars.discourse-cdn.com/v4/letter/v/e56c9b/32.png) [@vmanohar1](https://discuss.elastic.co/u/vmanohar1)\
**Post date:** [December 17, 2020, 11:32am UTC](https://discuss.elastic.co/t/geo-shape-geo-point-can-they-be-added-on-the-fly/258910/3 "2020-12-17T11:32:54Z")

</div>

Thanks for confirming!

---

<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:** [January 14, 2021, 11:33am UTC](https://discuss.elastic.co/t/geo-shape-geo-point-can-they-be-added-on-the-fly/258910/4 "2021-01-14T11:33:08Z")

</div>

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