lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <>
Subject Re: geofilt customization
Date Thu, 06 Feb 2014 13:08:38 GMT
On Thu, Feb 6, 2014 at 5:13 AM, Sohan Kalsariya
<> wrote:
> So in short i want to ask that Is it possible not to define the `distance`
> parameter ? So I can get my desired results?

No, the distance parameter is required for geofilt.

If you are still looking to calculate distance for returned documents,
then use a pseudo-field in conjunction with the geodist function (in
the "fl" parameter).

&fl=id, score, my_dist:geodist()

Or you could sort by distance...

&sort=geodist() asc
&fl=id, score, my_dist:geodist()

-Yonik - native off-heap filters and fieldcache for solr

View raw message