Alessandro: I should have been explicit that I'm hypothesizing somewhat here, so believe me at your own risk ;)
bq: So it means that group sorting is independent of the group head sorting that's my hypothesis, but it's _not_ based on knowing the code. Best, Erick On Wed, Apr 12, 2017 at 2:05 AM, alessandro.benedetti <a.benede...@sease.io> wrote: > "You're telling Solr to return the highest scoring doc in each group. > However, you're asking to order the _groups_ in ascending score order > (i.e. the group with the lowest scoring doc first) of _any_ doc in > that group, not just the one(s) returned. These are two separate > things. " > > This is quite interesting, and I admit I have not explored the internals yet > so i didn't know. > So, even if you return only the top scoring doc per group and you flat the > groups (group.format=simple), the "invisible docs" will still regulate the > sorting of the groups. > I would say it is at least quite counter-intuitive. > > So it means that group sorting is independent of the group head sorting. > sort = score asc -> will always sort the groups by ascending score of the > minimum scoring doc of the group. > sort = score desc -> will always sort the groups by descending score of the > maximum scoring doc in the group > > 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-tp4329255p4329468.html > Sent from the Solr - User mailing list archive at Nabble.com.