lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saïd Radhouani <>
Subject Re: LocalSolr distance in km?
Date Wed, 21 Jul 2010 10:22:00 GMT

What resource are you using for LocalSolr?
Using the SpatialTierQParser, you can choose between km or mile:
Or, if you are using the LocalSolrQueryComponent (, 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.,*:*&radius=0.621371192


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

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