Forum: Ruby on Rails ferret, will_paginate and group by

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3518ff338e5eee9b32eb1815daabc602?d=identicon&s=25 Marcelo Barbudas (Guest)
on 2009-04-25 23:10
(Received via mailing list)
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.
This topic is locked and can not be replied to.