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 Frank li <fu...@gmail.com> on 2014/11/19 23:33:58 UTC
sort and group.sort
We have a query which has both sort and group.sort. What we are expecting
is that we can use sort to sort groups but inside the group we have a
different sort.
However, looks like sort is over-writting the sorting order inside groups.
Can any one of you help us on this?
Basically we want to sort the groups in one way but sort inside the group
in another way.
Thanks,
Fudong
Re: sort and group.sort
Posted by Prashant Mankar <p....@easternenterprise.com>.
Hi,
We also have the same situation where we need to sort and group.sort
conflict each other can anyone find any solution on this. We also post
the query on stack overflow
https://stackoverflow.com/questions/51843803/how-to-sort-on-sorted-group-documents-in-solr
--
Regards
Prashant Mankar
Ansh System Pvt. Ltd.
Re: sort and group.sort
Posted by Erick Erickson <er...@gmail.com>.
Please provide us with more information, including:
1> the query you send
2> some sample results
3> what you think is wrong.
As it is, there's not much to go on here, sort and group.sort
should do what you want.
Best,
Erick
On Wed, Nov 19, 2014 at 2:33 PM, Frank li <fu...@gmail.com> wrote:
> We have a query which has both sort and group.sort. What we are expecting
> is that we can use sort to sort groups but inside the group we have a
> different sort.
>
> However, looks like sort is over-writting the sorting order inside groups.
>
> Can any one of you help us on this?
>
> Basically we want to sort the groups in one way but sort inside the group
> in another way.
>
> Thanks,
>
> Fudong