lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martijn v Groningen <martijn.v.gronin...@gmail.com>
Subject Re: Multiple Sort for Group/Folding
Date Wed, 11 Jan 2012 10:33:16 GMT
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 <mauroasprea@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: mauroasprea@gmail.com
> Mobile: +34 654297582
> Skype: mauro.asprea
>
>
>


-- 
Met vriendelijke groet,

Martijn van Groningen

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message