On Thu, Feb 6, 2014 at 5:13 AM, Sohan Kalsariya <sohankalsar...@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