Re: Sort across collapsed document is not working

2017-09-07 Thread Ray Niu
this is not sharded collection, it only had one shard. I want to use collapse to replace current group query, but the result is not same, I feel there are some function issue in collapse plugin 2017-09-07 14:59 GMT-07:00 Erick Erickson : > Is this a sharded collection? group.ngroups isn't support

Re: Sort across collapsed document is not working

2017-09-07 Thread Erick Erickson
Is this a sharded collection? group.ngroups isn't supported (see the docs, "group.ngroups and group.facet require that all documents in each group must be co-located on the same shard") in sharded situations so it's not surprising that the results differ. Best, Erick On Thu, Sep 7, 2017 at 10:35