lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <apa...@elyograg.org>
Subject Re: group.limit>1 and sorting is not working as expected
Date Tue, 11 Sep 2018 18:48:40 GMT
On 9/11/2018 12:00 PM, Venkateswarlu Bommineni wrote:
> What i am expecting is (it might be silly) if i put group.main=true and
> sort by price then the results are:
>
>        {
>          "priceValueGLP_usd_double":32015.0,
>          "sapRank_int":446},
>        {
>          "priceValueGLP_usd_double":32015.0,
>          "sapRank_int":446},
>        {
>          "priceValueGLP_usd_double":*31000.0*,
>          "sapRank_int":445},
>        {
>          "priceValueGLP_usd_double":*30670.0*,
>          "sapRank_int":446},
>        {
>          "priceValueGLP_usd_double":29040.0,
>          "sapRank_int":436},
>        {
>          "priceValueGLP_usd_double":27775.0,
>          "sapRank_int":436},

It sounds like you don't want grouping at all.  That seems to be a 
result list sorted by price.  If you group by rank, then all of the 
results for a specific rank will be together, and the response you 
indicated above where the docs with rank 446 are not all together will 
be impossible.  If you remove the grouping, then you can get a simple 
result sorted by price.

Thanks,
Shawn


Mime
View raw message