"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.

Reply via email to