Re: spatial sorting

2010-09-30 Thread dan sutton
Hi All, This is more of an FYI for those wanting to filter and sort by distance, and have the values returned in the result set after determining a way to do this with existing code. Using solr 4.0 an example query would contain the following parameters: /select? q=stevenage^0.0 +_val_:"ghhsin(

Re: spatial sorting

2010-09-21 Thread Grant Ingersoll
On Sep 17, 2010, at 9:45 AM, dan sutton wrote: > Hi, > > I'm trying to filter and sort by distance with this URL: > > http://localhost:8080/solr/select/?q=*:*&fq={!sfilt%20fl=loc_lat_lon}&pt=52.02694,-0.49567&d=2&sort={!func}hsin(52.02694,-0.49567,loc_lat_lon_0_d,%20loc_lat_lon_1_d,3963.205)asc