# Geo Point indexing

**URL:** <https://discuss.elastic.co/t/geo-point-indexing/14070>\
**Category:** Elasticsearch\
**Created:** [October 23, 2013, 12:01pm UTC](https://discuss.elastic.co/t/geo-point-indexing/14070 "2013-10-23T12:01:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tho82](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@Tho82](https://discuss.elastic.co/u/Tho82)\
**Post date:** [October 23, 2013, 12:01pm UTC](https://discuss.elastic.co/t/geo-point-indexing/14070/1 "2013-10-23T12:01:51Z")

</div>

Hi @ll,

i tried to index data using the Java Api (XContentBuilder adding a GeoPoint  
as a field), which is indexed as type String, the value looks like  
[22.2,33.3]. Then i did some research and found the following page:  
[http://www.elasticsearch.org/blog/geo-location-and-search/](http://www.elasticsearch.org/blog/geo-location-and-search/) with the comment  
saying:

_"Update: The automatic mapping of “geo enabled” properties has been  
disabled since publishing this article. You have to provide the correct  
mapping for geo properties. Please see the documentation[http://www.elasticsearch.org/guide/reference/mapping/geo-point-type.html](http://www.elasticsearch.org/guide/reference/mapping/geo-point-type.html)  
."_

I'm now wondering if there is a way to enable the automatic mapping of "geo  
enabled" properties (Configurable?)?  
Why was is disabled? (in my case it would be very helpful, because i need  
to index dynamically).

Anyways, the link to the documentation in the comment is not working for me.

Thanks in advance and best regards,  
Tho

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![chilling](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@chilling](https://discuss.elastic.co/u/chilling)\
**Post date:** [October 24, 2013, 8:16am UTC](https://discuss.elastic.co/t/geo-point-indexing/14070/2 "2013-10-24T08:16:59Z")

</div>

Hi Tho,

unfortunately the automatic mapping of the geo\_point has been disabled and  
you have to define it on your own. Maybe I can ask about your usecase?

cheers,  
Florian

On Wednesday, October 23, 2013 2:01:51 PM UTC+2, Tho82 wrote:

> Hi @ll,
> 
> i tried to index data using the Java Api (XContentBuilder adding a  
> GeoPoint as a field), which is indexed as type String, the value looks  
> like [22.2,33.3]. Then i did some research and found the following page:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/blog/geo-location-and-search/) with the  
> comment saying:
> 
> _"Update: The automatic mapping of “geo enabled” properties has been  
> disabled since publishing this article. You have to provide the correct  
> mapping for geo properties. Please see the documentation[http://www.elasticsearch.org/guide/reference/mapping/geo-point-type.html](http://www.elasticsearch.org/guide/reference/mapping/geo-point-type.html)  
> ."_
> 
> I'm now wondering if there is a way to enable the automatic mapping of  
> "geo enabled" properties (Configurable?)?  
> Why was is disabled? (in my case it would be very helpful, because i need  
> to index dynamically).
> 
> Anyways, the link to the documentation in the comment is not working for  
> me.
> 
> Thanks in advance and best regards,  
> Tho

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [October 24, 2013, 9:32pm UTC](https://discuss.elastic.co/t/geo-point-indexing/14070/3 "2013-10-24T21:32:31Z")

</div>

Will dynamic templates work? Both in terms of Tho's scheme and in terms of  
the geo point mapping limitations.

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

--  
Ivan

On Thu, Oct 24, 2013 at 1:16 AM, Florian Schilling \<  
[florian.schilling@elasticsearch.com](mailto:florian.schilling@elasticsearch.com)\> wrote:

> Hi Tho,
> 
> unfortunately the automatic mapping of the geo\_point has been disabled and  
> you have to define it on your own. Maybe I can ask about your usecase?
> 
> cheers,  
> Florian
> 
> On Wednesday, October 23, 2013 2:01:51 PM UTC+2, Tho82 wrote:
> 
> > Hi @ll,
> > 
> > i tried to index data using the Java Api (XContentBuilder adding a  
> > GeoPoint as a field), which is indexed as type String, the value looks  
> > like [22.2,33.3]. Then i did some research and found the following page:  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/**blog/geo-location-and-search/)[http://www.elasticsearch.org/blog/geo-location-and-search/](http://www.elasticsearch.org/blog/geo-location-and-search/)with the comment saying:
> > 
> > _"Update: The automatic mapping of “geo enabled” properties has been  
> > disabled since publishing this article. You have to provide the correct  
> > mapping for geo properties. Please see the documentation[http://www.elasticsearch.org/guide/reference/mapping/geo-point-type.html](http://www.elasticsearch.org/guide/reference/mapping/geo-point-type.html)  
> > ."_
> > 
> > I'm now wondering if there is a way to enable the automatic mapping of  
> > "geo enabled" properties (Configurable?)?  
> > Why was is disabled? (in my case it would be very helpful, because i  
> > need to index dynamically).
> > 
> > Anyways, the link to the documentation in the comment is not working for  
> > me.
> > 
> > Thanks in advance and best regards,  
> > Tho
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Tho82](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@Tho82](https://discuss.elastic.co/u/Tho82)\
**Post date:** [October 25, 2013, 5:12am UTC](https://discuss.elastic.co/t/geo-point-indexing/14070/4 "2013-10-25T05:12:59Z")

</div>

Hi,

my usecase is, that i want to index an EMF Model structure with 1 root  
element dynamically without having the overhead of creating an index  
mapping by myself. I have several fields, which contains an GeoPoint (which  
i set as a GeoPoint into the XContentBuilder), and i want to provide geo  
search with that dynamic mapping.

I don't understand why that feature already worked and why it was disabled,  
i would love to use that feature. And i didn't found any parameter in the  
configuration file to enable it, which would be very helpful.

Best regards,  
Tho

Am Donnerstag, 24. Oktober 2013 10:16:59 UTC+2 schrieb Florian Schilling:

> Hi Tho,
> 
> unfortunately the automatic mapping of the geo\_point has been disabled and  
> you have to define it on your own. Maybe I can ask about your usecase?
> 
> cheers,  
> Florian
> 
> On Wednesday, October 23, 2013 2:01:51 PM UTC+2, Tho82 wrote:
> 
> > Hi @ll,
> > 
> > i tried to index data using the Java Api (XContentBuilder adding a  
> > GeoPoint as a field), which is indexed as type String, the value looks  
> > like [22.2,33.3]. Then i did some research and found the following page:  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/blog/geo-location-and-search/) with the  
> > comment saying:
> > 
> > _"Update: The automatic mapping of “geo enabled” properties has been  
> > disabled since publishing this article. You have to provide the correct  
> > mapping for geo properties. Please see the documentation[http://www.elasticsearch.org/guide/reference/mapping/geo-point-type.html](http://www.elasticsearch.org/guide/reference/mapping/geo-point-type.html)  
> > ."_
> > 
> > I'm now wondering if there is a way to enable the automatic mapping of  
> > "geo enabled" properties (Configurable?)?  
> > Why was is disabled? (in my case it would be very helpful, because i  
> > need to index dynamically).
> > 
> > Anyways, the link to the documentation in the comment is not working for  
> > me.
> > 
> > Thanks in advance and best regards,  
> > Tho

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Tho82](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@Tho82](https://discuss.elastic.co/u/Tho82)\
**Post date:** [October 25, 2013, 10:16pm UTC](https://discuss.elastic.co/t/geo-point-indexing/14070/5 "2013-10-25T22:16:32Z")

</div>

Dynamic mapping worked! I just defined a string field and a field name, the  
parameter i defined was indexed afterwards as type geo\_point.  
Thanks for the tip Ivan..

Cheers, Tho

Am Donnerstag, 24. Oktober 2013 23:32:31 UTC+2 schrieb Ivan Brusic:

> Will dynamic templates work? Both in terms of Tho's scheme and in terms of  
> the geo point mapping limitations.
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-root-object-type.html)
> 
> --  
> Ivan
> 
> On Thu, Oct 24, 2013 at 1:16 AM, Florian Schilling \<  
> [florian....@elasticsearch.com](mailto:florian....@elasticsearch.com) \<javascript:\>\> wrote:
> 
> > Hi Tho,
> > 
> > unfortunately the automatic mapping of the geo\_point has been disabled  
> > and you have to define it on your own. Maybe I can ask about your usecase?
> > 
> > cheers,  
> > Florian
> > 
> > On Wednesday, October 23, 2013 2:01:51 PM UTC+2, Tho82 wrote:
> > 
> > > Hi @ll,
> > > 
> > > i tried to index data using the Java Api (XContentBuilder adding a  
> > > GeoPoint as a field), which is indexed as type String, the value looks  
> > > like [22.2,33.3]. Then i did some research and found the following page:  
> > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/**blog/geo-location-and-search/)[http://www.elasticsearch.org/blog/geo-location-and-search/](http://www.elasticsearch.org/blog/geo-location-and-search/)with the comment saying:
> > > 
> > > _"Update: The automatic mapping of “geo enabled” properties has been  
> > > disabled since publishing this article. You have to provide the correct  
> > > mapping for geo properties. Please see the documentation[http://www.elasticsearch.org/guide/reference/mapping/geo-point-type.html](http://www.elasticsearch.org/guide/reference/mapping/geo-point-type.html)  
> > > ."_
> > > 
> > > I'm now wondering if there is a way to enable the automatic mapping of  
> > > "geo enabled" properties (Configurable?)?  
> > > Why was is disabled? (in my case it would be very helpful, because i  
> > > need to index dynamically).
> > > 
> > > Anyways, the link to the documentation in the comment is not working for  
> > > me.
> > > 
> > > Thanks in advance and best regards,  
> > > Tho
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:10am UTC](https://discuss.elastic.co/t/geo-point-indexing/14070/6 "2017-07-06T02:10:31Z")

</div>


