lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <j...@basetechnology.com>
Subject Re: need distance in miles not in kilometers
Date Tue, 02 Jul 2013 12:41:47 GMT
Simply multiply by the number of miles per kilometer, 0.621371:

fl=_dist_:mul(geodist(),0.621371)

-- Jack Krupansky

-----Original Message----- 
From: irshad siddiqui
Sent: Tuesday, July 02, 2013 5:19 AM
To: solr-user@lucene.apache.org
Subject: need distance in miles not in kilometers

Hi,


I am suing solr 4.2 and my results are coming proper.

but now i want to distance in miles and i am getting the distance
in kilometre.

can anyone tell me how to get the  distance in miles.

example query

&q=*:*&fq={!geofilt}&sfield=latlng&pt=18.9322453,72.82643780000001&d=60&fl=_dist_:geodist()&sort=geodist()
desc


url
http://wiki.apache.org/solr/SpatialSearch


Thanks in advance.

Regards,
Irshad 


Mime
View raw message