OK, you just don't want to group as Shawn says. The group.main=true
just flattens the list but still returns the docs in groups does all
the work of grouping. So instead of getting
value=1 [
   doc31
   doc64
 ]
value=2 [
   doc 98
   doc 6
  ]

you get

doc31
doc64
doc98
doc6

Best,
Erick
On Tue, Sep 11, 2018 at 11:48 AM Shawn Heisey <apa...@elyograg.org> wrote:
>
> 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
>

Reply via email to