我正在尝试使用http://www.ibm.com/developerworks/java/library/j-spatial/#indexing.approaches中的空间示例进行位置感知搜索。
数据具有geohash字段,但在用于索引的任何.osm文件(存在于data文件夹中)中都不存在此字段。我不能理解它是如何赋值的,所以当我给出这个查询时
http://localhost:8983/solr/select/?q=_val_:"recip (ghhsin(geohash(44.79, -93), geohash, 3963.205), 1, 1, 0)"^100结果集具有检索到的Geohash值。这是怎么发生的?请帮帮我。
发布于 2010-05-12 02:42:34
总而言之,您的模式定义了“geohash”类型的字段:
<fieldtype name="geohash" class="solr.GeoHashField"/>
<field name="destination" type="geohash" indexed="true" stored="true"/>数据馈送器传入地理散列坐标:
<field name="destination">cbj1pb56p4b</field> <!-- 45.17614 -93.87341 -->您可能应该回到使用简单的纬度和经度坐标开始。
https://stackoverflow.com/questions/2360984
复制相似问题