group.limit>1 and sorting is not working as expected

2018-09-08 Thread Venkateswarlu Bommineni
Hello Solr Experts,

I am facing an weird issue. where if i have put group.limit>1 then sorting
is not working as expected.

Query ;
https:///solr/default/select?fq=rank_int:[1%20TO%20*]&indent=on&wt=json&group=true&group.main=true&group.field=
rank_int&group.limit=3&q=*&fl=code_string,sapRank_int,price&sort=price+desc

I am grouping on field *rank_int with group limit>3 and doing the sorting
on price. sorting is happening inside the group not on whole records.*

*but if i put group.limit=1 then sorting is working absolutely fine.*

Could you please help me , how can i sort on all the results with
group.limit>1.

*Thanks,*
*Venkat. *



Thanks,
Venkat.


Re: group.limit>1 and sorting is not working as expected

2018-09-08 Thread Shawn Heisey

On 9/8/2018 8:34 PM, Venkateswarlu Bommineni wrote:

Query ;
https:///solr/default/select?fq=rank_int:[1%20TO%20*]&indent=on&wt=json&group=true&group.main=true&group.field=
rank_int&group.limit=3&q=*&fl=code_string,sapRank_int,price&sort=price+desc

I am grouping on field *rank_int with group limit>3 and doing the sorting
on price. sorting is happening inside the group not on whole records.*


You need to find the right combination of sort and group.sort parameters.

https://lucene.apache.org/solr/guide/6_6/result-grouping.html#ResultGrouping-RequestParameters

Thanks,
Shawn