Did you try adding the parameter "group.sort=popularity+desc" to the URL? I think that's what you want, according to http://wiki.apache.org/solr/FieldCollapsing.
Good luck Juan Grande On Thu, Jan 6, 2011 at 3:30 AM, Andy <angelf...@yahoo.com> wrote: > I want to group my results by a field named "group_id". > > According to http://wiki.apache.org/solr/FieldCollapsing , for each unique > value of group_id a docList with the top scoring document is returned. > > But in my case I want to sort the results within each "group_id" by an int > field "popularity" instead. So within each "group_id" I just want the > document with the highest "popularity". > > Is it possible to do that? > > Thanks. > > > >