sunspot/sunspot — pull request #199 by brutuscat (2012-03-16 11:29:27+00:00)
Title: Group's data accessor from its search object

The group should use same data accessor that its ```@search``` uses.
This way it will use the options passed in into the search: Eg :include

```
@s = Post.search(:include => :comments) do
group(:categories_id_str)
end
```

So when loading the ```categories_id_str``` group each Post loaded will include its ```:comments```