Drupal 7 Solr 4 $query group by
You can add custom parameters through hook_apachesolr_query_alter, eg

function MYMODULE_apachesolr_query_alter(DrupalSolrQueryInterface $query) {
  $query-&gt;addParam('group', 'true');
  // etc
}