Hi,

What resource are you using for LocalSolr?
Using the SpatialTierQParser, you can choose between km or mile: 
http://blog.jteam.nl/2009/08/03/geo-location-search-with-solr-and-lucene/   
Or, if you are using the LocalSolrQueryComponent 
(http://www.gissearch.com/localsolr), and you can't choose between the two 
units, you can use the "radius" parameter and the conversion from mile to Km (1 
kilometer = 0.621371192 mile), e.g., 
http://...select?&qt=geo&lat=xx.xx&long=yy.yy&q=*:*&radius=0.621371192

HTP
-S

On Jul 21, 2010, at 6:14 AM, Chamnap Chhorn wrote:

> Hi,
> 
> I want to do a geo query with LocalSolr. However, It seems it supports only
> miles **when calculating distances. Is there a quick way to use this search
> component with solr using Km instead?
> The other thing I want it to calculate distance start from 500 meters up.
> How could I do this?
> 
> -- 
> Chhorn Chamnap
> http://chamnapchhorn.blogspot.com/

Reply via email to