Jack ,
Thanks for your response.
In case of frange we donot want to separately multiple for conversion so in
that case is there any way to convert it into miles.

my Query:
http://localhost:8983/solr/select?q=name:shop&fl=name,shopLocation,shopMaxDeliveryDistance,geodist%28shopLocation,0.0,0.0%29&sort=geodist%28shopLocation,0.0,0.0%29%20asc&fq={!
frange
%20u=0}sub%28geodist%28shopLocation,0.0,0.0%29,shopMaxDeliveryDistance%29<http://www.google.com/url?q=http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Fselect%3Fq%3Dname%3Ashop%26fl%3Dname%2CshopLocation%2CshopMaxDeliveryDistance%2Cgeodist%2528shopLocation%2C0.0%2C0.0%2529%26sort%3Dgeodist%2528shopLocation%2C0.0%2C0.0%2529%2520asc%26fq%3D%7B%21frange%2520u%3D0%7Dsub%2528geodist%2528shopLocation%2C0.0%2C0.0%2529%2CshopMaxDeliveryDistance%2529&sa=D&sntz=1&usg=AFQjCNGIj4_FQ0XKwC8RPLb_iZrzOY-SZg>

I wants result in miles






On Tue, Jul 2, 2013 at 6:11 PM, Jack Krupansky <j...@basetechnology.com>wrote:

> 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<http://wiki.apache.org/solr/SpatialSearch>
>
>
> Thanks in advance.
>
> Regards,
> Irshad
>

Reply via email to