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 Jason Toy <ja...@gmail.com> on 2011/06/12 02:39:09 UTC
can't determine sort order?
I am trying to use sorting by function on solr 3.2 and it doesn't now workt
with termfreq. I do this query:
/solr/select?q=test&qf=all_lists_text&defType=dismax&sort=termfreq%28all_lists_text%2Ctest%29+desc&rows=50
I get this error:
Can't determine Sort Order: 'termfreq(description_text,'test') desc', pos=8
When I use other functions such as sort by "sum(1,2) desc" or other simple
functions, solr returns the query, why am I unable to sort with these other
functions?
--
- sent from my mobile
6176064373
Re: can't determine sort order?
Posted by Erick Erickson <er...@gmail.com>.
It's easy to overlook, but all those relevance functions are
on trunk (4.0+) only, not the 3.x code branch..
Sum is a math function that's been in there for quite some time.
Best
Erick
On Sat, Jun 11, 2011 at 8:39 PM, Jason Toy <ja...@gmail.com> wrote:
> I am trying to use sorting by function on solr 3.2 and it doesn't now workt
> with termfreq. I do this query:
> /solr/select?q=test&qf=all_lists_text&defType=dismax&sort=termfreq%28all_lists_text%2Ctest%29+desc&rows=50
> I get this error:
> Can't determine Sort Order: 'termfreq(description_text,'test') desc', pos=8
>
> When I use other functions such as sort by "sum(1,2) desc" or other simple
> functions, solr returns the query, why am I unable to sort with these other
> functions?
>
>
> --
> - sent from my mobile
> 6176064373
>