Get Distance from geohash field in solr 3.6
- by Omar A. Shaaban
Is it possible to get distance returned from a geodist() filter, on a geohash field that has multiple values?
The geosort and the geodist filter are working fine, but I'm trying to get the distance between the query point and a location that was returned in the result.
I've tried http://wiki.apache.org/solr/SpatialSearch#Returning_the_distance
The second method which is :
//localhost:8983/solr/select?indent=true&fl=name,store&sfield=store&pt=45.15,-93.85&sort=score%20asc&q={!func}geodist()
But it returns weird results, tested with 2 locations it returns score 9979.032, where there is ~33,000 Km between both points in reality?
What is the unit that it uses returning the distance in the score field? I assumed km, but it does not make sense, or the result is bogus, I dunno
Anyhelp would be appreciated, thanks