You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Otis Gospodnetic <ot...@yahoo.com> on 2011/04/21 14:30:14 UTC
Can't determine Sort Order error when using sort by function
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
Posted by Yonik Seeley <yo...@lucidimagination.com>.
On Thu, Apr 21, 2011 at 8:30 AM, Otis Gospodnetic
<ot...@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
>