feliperazeek / playframework-elasticsearch

Integrate Elastic Search in a Play! Framework Application. This module uses JPA events to notify Elastic Search of events of their own. It embeds a running Elastic Search instance for Rapid Development.
http://geeks.aretotally.in/play-framework-module-elastic-search-distributed-searching-with-json-http-rest-or-java
84 stars 43 forks source link

Indexing geo position #49

Open nacef-labidi opened 12 years ago

nacef-labidi commented 12 years ago

Hi Felipe,

I just started using this module and it's really great. My need is to be able to index geo position of my model being indexed. Actually on the model I have two String properties "lat" and "lng".

Is indexing geo points available in the module ?

Thank you

Nacef

feliperazeek commented 12 years ago

No not yet, you should probably define lat and lng as a Double and override the mapping directly on ES to map them to a GetPt.

nacef-labidi commented 12 years ago

Thank you Felipe for your quick response. Do you have a plan to include this feature ?

Also, I'm really new with ES so if you have time, it would be great if you could explain me more how to override the mapping in ES or point me to some ressources.

Thanks again

feliperazeek commented 12 years ago

This is how you set a mapping on ES: http://www.elasticsearch.org/guide/reference/api/admin-indices-put-mapping.html