我正在尝试使用新的Solr 4地理空间搜索功能。就像在http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4中的示例一样,我正在尝试获取以下结果:
http://localhost:8983/solr/allopenhours/select?
&q=foobar
&fq=geo:%22Intersects(Circle(54.729696,-98.525391%20d=0.08992))%22
&q={!%20score=distance}
&fl=*,score
但是它不起作用,我如何在结果集中获得距离和分数字段?
解析字段名错误:geodist - 参数不足:[]
。 - andrexusgeodist()
函数的参考文档:http://wiki.apache.org/solr/SpatialSearch#geodist_-_The_distance_function - Paige CookA ValueSource isn't directly available from this field. Instead try a query using the distance as the score.
- andrexus