Thanks Martijn. I know what you mean, but in my case I want to sort the groups using both "sort" keys and then inside each group it should use the "group.sort".
If you take a look at the query you will see both regular sorting keys &sort=location_weight_i desc, weight_i desc. The issue here is that when does the grouping it is seems to be failingl to sort the groups by the second key. to clarify: I do understand the use case for the other "group.sort" key and it is working just fine. The issue is with the 2nd regular sort key. Thanks ;) -- Mauro Asprea E-Mail: mauroasp...@gmail.com Mobile: +34 654297582 Skype: mauro.asprea On Wednesday, January 11, 2012 at 11:33 AM, Martijn v Groningen wrote: > Hi Mauro, > > During the first pass search the sort param is used to determine the top N > groups. Then during the second pass search the documents inside the top N > groups are sorted using the group.sort parameter. The group.sort doesn't > change how the groups them self are sorted. > > Martijn > > On 11 January 2012 08:03, Mauro Asprea <mauroasp...@gmail.com > (mailto:mauroasp...@gmail.com)> wrote: > > > Hi, I'm having some issues trying to sort my grouped results by more than > > one field. If I use just one, independently of which I use it just work > > fine (I mean it sorts). > > > > I have a case that the first sorting key is equal for all the head docs of > > each group, so I expect to return the groups sorted by its second sorting > > key. But its not the case. Only sorts using the first key no matter what. > > > > This is my query: > > fq=type:Movie&fq={!tag=cg01w4p3bcj3}date_start_dt:[2012\-01\-11T06\:47\:38Z > > TO 2012\-01\-12T08\:59\:59Z]&fq=event_id_i:[1 TO *]&sort=location_weight_i > > desc, weight_i desc&q="Village Avellaneda"&fl=* score&qf=name_texts > > location_name_text&defType=dismax&start=0&rows=12&group=true&group.field=event_id_str_s&group.field=location_name_str_s&group.sort=date_start_dt > > asc&group.limit=10&group.limit=1&facet=true&facet.query={!ex=cg01w4p3bcj3}date_start_dt:[2012\-01\-11T06\:47\:38Z > > TO > > 2012\-01\-12T08\:59\:59Z]&facet.query={!ex=cg01w4p3bcj3}date_start_dt:[2012\-01\-12T09\:00\:00Z > > TO > > 2012\-01\-13T08\:59\:59Z]&facet.query={!ex=cg01w4p3bcj3}date_start_dt:[2012\-01\-13T21\:00\:00Z > > TO > > 2012\-01\-16T08\:59\:59Z]&facet.query={!ex=cg01w4p3bcj3}date_start_dt:[2012\-01\-11T06\:47\:38Z > > TO > > 2012\-01\-18T12\:47\:38Z]&facet.query={!ex=cg01w4p3bcj3}date_start_dt:[2012\-01\-11T06\:47\:38Z > > TO 2012\-02\-10T12\:47\:38Z] > > > > Using the last Solr release 3.5 > > > > > > Thanks! > > -- > > Mauro Asprea > > > > E-Mail: mauroasp...@gmail.com (mailto:mauroasp...@gmail.com) > > Mobile: +34 654297582 > > Skype: mauro.asprea > > > > > > -- > Met vriendelijke groet, > > Martijn van Groningen