Re: Grouping and recip function not working with Sharding

2015-07-08 Thread Pankaj Sonawane
Hi Erick, Below example is for grouping issue not for sorting. I have indexed 1839 records with 'NAME' field in all, There may be duplicate record for each 'NAME' value. Let say There are 5 records with NAME='A-SERIES',similarly 3 records with NAME='E-SERIES' etc. I have total 264 unique NAME va

Re: Grouping and recip function not working with Sharding

2015-07-08 Thread Pankaj Sonawane
Erick Erickson gmail.com> writes: > > From the reference guide: > > group.ngroups and group.facet require that all documents in each group > must be co-located on the same shard in order for accurate counts to > be returned. Document routing via composite keys can be a useful > solution in ma

Re: Grouping and recip function not working with Sharding

2015-07-08 Thread Erick Erickson
>From the reference guide: group.ngroups and group.facet require that all documents in each group must be co-located on the same shard in order for accurate counts to be returned. Document routing via composite keys can be a useful solution in many situations. It's not clear what you think the pr

Grouping and recip function not working with Sharding

2015-07-08 Thread Pankaj Sonawane
Hi, I am using sharding (3 shards) with Zookeeper. When I query a collection using " *group=true&group.field=NAME&group.ngroups=true*" parameters, "*ngroups*" in response is incorrect. However I am getting correct count in doclist array. Ex: Below response contains 5 groups (Which is correct) bu