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
> 
> Filtering is fine but it's failing in parsing the sort with :
> 
> "The request sent by the client was syntactically incorrect (can not sort on
> undefined field or function: {!func}(52.02694,-0.49567,loc_lat_lon_0_d,
> loc_lat_lon_1_d, 3963.205))."*

I don't see a function declared in that line, although it is in the one above.  
Also, you need a space between the function and asc.

Reply via email to