Many thanks. I took your changes for the following commits:
SOLR-2642 SOLR-2637 SOLR-2523 I have gone withhout the group.main option as on hindsight it is quite useful to use the GroupCommand and Group objects with the results - especially group.ngroups has optimized our code where we used to perform a secondary query to get the total groups (as we were using collapse.threshold) And with a bit of tweaking all my unit tests have gone green. Except one - sharding tests. We use grouping and sharding and I get a null pointer @ QueryComponent.mergeIds(QueryComponent.java:492) Looks like this is because it is trying to use the "response". Very similar to https://issues.apache.org/jira/browse/SOLR-2270 -- View this message in context: http://lucene.472066.n3.nabble.com/A-rant-about-field-collapsing-tp3222798p3228753.html Sent from the Solr - User mailing list archive at Nabble.com.