Also, if you're on 3.1, the function needs to be without spaces since sort will 
split on space to find the sort order.

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

On 28. feb. 2011, at 22.34, John Sherwood wrote:

> Fair call.  Thanks.
> 
> On Tue, Mar 1, 2011 at 8:21 AM, Geert-Jan Brits <gbr...@gmail.com> wrote:
>> sort by functionquery is only available from solr 3.1 (from :
>> http://wiki.apache.org/solr/FunctionQuery#Sort_By_Function)
>> 
>> 
>> 2011/2/28 John Sherwood <j...@storecrowd.com>
>> 
>>> This works:
>>> /select/?q=*:*&sort=price desc
>>> 
>>> This throws a 400 error:
>>> /select/?q=*:*&sort=sum(1, 1) desc
>>> 
>>> "Missing sort order."
>>> 
>>> I'm using 1.4.2.  I've tried all sorts of different numbers, functions, and
>>> fields but nothing seems to change that error.  Any ideas?
>>> 
>> 

Reply via email to