# Ferret, will\_paginate and group by

**URL:** <https://www.ruby-forum.com/t/ferret-will-paginate-and-group-by/166482>\
**Category:** Rails\
**Created:** [April 25, 2009, 11:10pm UTC](https://www.ruby-forum.com/t/ferret-will-paginate-and-group-by/166482 "2009-04-25T23:10:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arvias](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ac91a4/32.png) [@arvias](https://www.ruby-forum.com/u/arvias)\
**Post date:** [April 25, 2009, 11:10pm UTC](https://www.ruby-forum.com/t/ferret-will-paginate-and-group-by/166482/1 "2009-04-25T23:10:03Z")

</div>

Hi,

Is it possible to use “find\_with\_ferret” and GROUP BY together?

Count(\*) doesn’t return what will\_paginate expects when using GROUP  
BY, and AFAIK a workaround for that is to manually get total\_entries  
and pass it to Model.paginate.

However how does that work with find\_with\_ferret where I have no idea  
how to find total\_entries?

Is it even possible?

–  
M.
