Hi Roy.

See this:
http://wiki.apache.org/solr/SpatialSearch#Returning_the_distance

I recommend returning the point location and calculating the distance yourself 
-- it's not hard.  Getting Solr to return it is a bit of a hack now.

~ David Smiley
Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/

On May 11, 2011, at 10:55 AM, roySolr wrote:

> Hello,
> 
> I'm using the spatial solr plugin from jteam for SOLR 1.4. Now i want to use
> SOLR 3.1 because it contains
> a lot of bugfixes:) Now i want to get a distance field back in my results.
> How can i do it?
> 
> My url looks like:
> 
> q=testquery&fq={!geofilt pt=52.78556,3.4546 sfield=latlon d=50} 
> 
> I get only the results between the distance(50 km) and that's great. I only
> missing the
> distance field for every document in the response.
> 
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Spatial-search-SOLR-3-1-tp2927579p2927579.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Reply via email to