Sorting groups by numfound isn't possible. You can sort groups by specifying a function or a field (from your schema) in the sort parameter. The numFound isn't a field so that is why you can't sort on it.
Martijn On 7 September 2011 08:17, bobsolr <xbvbvccvb...@hotmail.com> wrote: > Hi, > > I'm using this sample query to group the result set by category: > > q=test&group=true&group.field=category > > This works as expected and I get this sample response: > > "response": > {"numFound":1,"start":0,"docs":[ > { > ... > } > {"numFound":6,"start":0,"docs":[ > { > ... > } > {"numFound":3,"start":0,"docs":[ > { > ... > } > > However, I can't find a way to specify the sort order of the groups by > number of docs each group has ("numFound field). I think the "sort" param > has something to do with it, but I don't know how to use it. > > Any help will be greatly appreciated! > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Sorting-groups-by-numFound-group-size-tp3315740p3315740.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Met vriendelijke groet, Martijn van Groningen