【发布时间】:2014-05-31 20:30:03
【问题描述】:
我想知道: 什么最适合索引地点的地理位置? Geohash 还是 lon/lat?
我根据用户与地点之间的距离搜索地点,那么 ElasticSearch 最适合什么?我认为 Geohash 更强大,但我可能错了......
【问题讨论】:
标签: geolocation elasticsearch geohashing
我想知道: 什么最适合索引地点的地理位置? Geohash 还是 lon/lat?
我根据用户与地点之间的距离搜索地点,那么 ElasticSearch 最适合什么?我认为 Geohash 更强大,但我可能错了......
【问题讨论】:
标签: geolocation elasticsearch geohashing
Geohash 只是一种具有不同精度的 lon/lat 表示形式。您应该在映射中指定地理点类型: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-geo-point-type.html,您可以同时使用 geohash 或 lon/lot 形式。
【讨论】: