the group.sort spec is specified twice in the URL group.sort=score desc& group.sort=score desc
Is there a chance that during testing you only changed _one_ of them so you had group.sort=score desc& group.sort=score asc ? I think the last one should win.. Shot in the dark. Best, Erick On Tue, Apr 11, 2017 at 3:23 AM, alessandro.benedetti <a.benede...@sease.io> wrote: > To be fair the second result seems consistent with the Solr grouping logic : > > *First Query results (Suspicious)* > 1) group.sort= score desc -> select the group head as you have 1 doc per > group( the head will be the top scoring doc per group) > 2) sort=score asc -> sort the groups by the score of the head ascending ( so > the final resulting groups should be ascending in score) > > > *Second Query results ( CORRECT)* > 1) group.sort= score desc -> select the group head as you have 1 doc per > group( the head will be the top scoring doc per group) > 2) sort -> sort the groups by the score of the head ( so the final resulting > groups are sorted descending) > > Are we sure the the sort is expected to sort the groups after the grouping > happened ? > I need to check the internals but I agree the current behaviour is not > intuitive. > > Cheers > > > > > > ----- > --------------- > Alessandro Benedetti > Search Consultant, R&D Software Engineer, Director > Sease Ltd. - www.sease.io > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Grouped-Result-sort-issue-tp4329255p4329292.html > Sent from the Solr - User mailing list archive at Nabble.com.