Collapsing Query Parser returns one record per shard...was not expecting this...

2015-08-03 Thread Peter Lee
>From my reading of the solr docs (e.g. >https://cwiki.apache.org/confluence/display/solr/Collapse+and+Expand+Results >and https://cwiki.apache.org/confluence/display/solr/Result+Grouping), I've >been under the impression that these two methods (result grouping and >collapsing query parser) can

Re: Collapsing Query Parser returns one record per shard...was not expecting this...

2015-08-03 Thread Joel Bernstein
Your findings are the expected behavior for the Collapsing qparser. The Collapsing qparser requires records in the same collapsed field to be located on the same shard. The typical approach for this is to use composite Id routing to ensure that documents with the same collapse field land on the sam

Re: Collapsing Query Parser returns one record per shard...was not expecting this...

2015-08-03 Thread Joel Bernstein
One of things to keep in mind with Grouping is that if you are relying on an accurate group count (ngroups) then you will also have to collocate documents based on the grouping field. The main advantage to the Collapsing qparser plugin is it provides fast field collapsing on high cardinality field

RE: Collapsing Query Parser returns one record per shard...was not expecting this...

2015-08-04 Thread Peter Lee
l Bernstein [mailto:joels...@gmail.com] Sent: Monday, August 03, 2015 10:51 PM To: solr-user@lucene.apache.org Subject: Re: Collapsing Query Parser returns one record per shard...was not expecting this... One of things to keep in mind with Grouping is that if you are relying on an accurate group coun