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 Gastone Penzo <ga...@gmail.com> on 2011/08/01 15:43:00 UTC

sort by function

Hi,
i need to order by function like:

sort=sum(field1,field2,field3)+desc

but solr gives me this error:
Missing sort order.
why is this possible? i read that is possible to order by function, from version 1.3
(http://wiki.apache.org/solr/FunctionQuery#Sort_By_Function)

i use version 1.4

nobody has an idea?

thanx


Gastone

Re: sort by function

Posted by Bill Bell <bi...@gmail.com>.
This seems like a bug.

On 8/1/11 7:47 AM, "Jamie Johnson" <je...@gmail.com> wrote:

>I've never tried but could it be sort=sum(field1,field2,field3)%20desc
>
>On Mon, Aug 1, 2011 at 9:43 AM, Gastone Penzo <ga...@gmail.com>
>wrote:
>> Hi,
>> i need to order by function like:
>>
>> sort=sum(field1,field2,field3)+desc
>>
>> but solr gives me this error:
>> Missing sort order.
>> why is this possible? i read that is possible to order by function,
>>from version 1.3
>> (http://wiki.apache.org/solr/FunctionQuery#Sort_By_Function)
>>
>> i use version 1.4
>>
>> nobody has an idea?
>>
>> thanx
>>
>>
>> Gastone



Re: sort by function

Posted by Jamie Johnson <je...@gmail.com>.
I've never tried but could it be sort=sum(field1,field2,field3)%20desc

On Mon, Aug 1, 2011 at 9:43 AM, Gastone Penzo <ga...@gmail.com> wrote:
> Hi,
> i need to order by function like:
>
> sort=sum(field1,field2,field3)+desc
>
> but solr gives me this error:
> Missing sort order.
> why is this possible? i read that is possible to order by function, from version 1.3
> (http://wiki.apache.org/solr/FunctionQuery#Sort_By_Function)
>
> i use version 1.4
>
> nobody has an idea?
>
> thanx
>
>
> Gastone