Can't determine Sort Order error when using sort by function

2011-04-21 Thread Otis Gospodnetic
Hello,

I'm trying out sorting by function with the new function queries and invariably 
getting this error:

  Can't determine Sort Order: 'termfreq(name,samsung)', pos=22

Here's an example call:
http://localhost:8983/solr/select/?q=*:*sort=termfreq%28name,samsung%29

What am I doing wrong?

Thanks,
Otis


Re: Can't determine Sort Order error when using sort by function

2011-04-21 Thread Yonik Seeley
On Thu, Apr 21, 2011 at 8:30 AM, Otis Gospodnetic
otis_gospodne...@yahoo.com wrote:
 Hello,

 I'm trying out sorting by function with the new function queries and 
 invariably
 getting this error:

  Can't determine Sort Order: 'termfreq(name,samsung)', pos=22

 Here's an example call:
 http://localhost:8983/solr/select/?q=*:*sort=termfreq%28name,samsung%29

 What am I doing wrong?

Try adding the sort order asc or desc after the function.

-Yonik
http://www.lucenerevolution.org -- Lucene/Solr User Conference, May
25-26, San Francisco




 Thanks,
 Otis