lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saïd Radhouani <r.steve....@gmail.com>
Subject Re: LocalSolr distance in km?
Date Wed, 21 Jul 2010 10:22:00 GMT
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/


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message