lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@heliosearch.com>
Subject Re: geofilt customization
Date Thu, 06 Feb 2014 13:08:38 GMT
On Thu, Feb 6, 2014 at 5:13 AM, Sohan Kalsariya
<sohankalsariya@gmail.com> 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).

q=*:*
&fl=id, score, my_dist:geodist()
&sfield=...
&pt=...

Or you could sort by distance...

q=*:*
&sort=geodist() asc
&fl=id, score, my_dist:geodist()
&sfield=...
&pt=...


-Yonik
http://heliosearch.org - native off-heap filters and fieldcache for solr

Mime
View raw message