I'm using the solr 4.0 nightly build version. In fact I intend to sort with
a more complicate function including score, geodist() and other factors, so
this example is to simplify the issue that I cannot sort with a customized
function of score.
More concrete, how can i make the sort like:
sort=product(div(1,geodist()),score) desc ?
Thanks,
Toan.

On Sun, Jun 3, 2012 at 2:56 PM, Erick Erickson <erickerick...@gmail.com>wrote:

> What version of Solr are you using? When I try this with 3.6
> I get an error that "score is not defined".
>
> But what are you trying to accomplish with this particular sort, it
> won't actually do anything at all to your sort order or are you just
> experimenting?
>
> Best
> Erick
>
> On Fri, Jun 1, 2012 at 11:30 AM, Toan V Luu <luuvinht...@gmail.com> wrote:
> > Hi,
> > When i use "sort=score asc" then it works, but when I use a customized
> > function like "sort=sum(score,2) asc" then I got an error "can not sort
> on
> > multivalued field: sum(score,2)". Do you know why and how to solve it?
> > Thanks
> > Toan.
>

Reply via email to