Hey all, I''ve been really happy with ferret thus far and all my search on my site is based on it. One of the recent challenges I ran into is changing some of my pagination within my site. Until now, I just used the tutorials out there that talk about how to get pagination working with acts_as_ferret. Recently, I decided to change my pagination to begin using the "Paginating Find" plugin. http://cardboardrocket.com/pages/paginating_find I''m using the "Paginating Find" plugin and combining it with the following guide to get Digg.com style pagination looking links. http://www.igvita.com/blog/2006/09/10/faster-pagination-in-rails/ For most of my site, that works fine, but I haven''t been too successful in getting it to work with acts_as_ferret and I''m not quite sure where to start. Anyone tried this out before or have any ideas that might point me in the right direction? Thanks in advance! -- Posted via http://www.ruby-forum.com/.
On Feb 10, 2007, at 1:00 AM, Mark wrote:> I''ve been really happy with ferret thus far and all my search on my > site > is based on it. One of the recent challenges I ran into is changing > some > of my pagination within my site. Until now, I just used the tutorials > out there that talk about how to get pagination working with > acts_as_ferret.Here''s a thread on pagination with acts_as_ferret: http://www.ruby-forum.com/topic/64033 HTH, Andreas
On Sat, Feb 10, 2007 at 01:00:46AM +0100, Mark wrote:> Hey all, > > I''ve been really happy with ferret thus far and all my search on my site > is based on it. One of the recent challenges I ran into is changing some > of my pagination within my site. Until now, I just used the tutorials > out there that talk about how to get pagination working with > acts_as_ferret. > > Recently, I decided to change my pagination to begin using the > "Paginating Find" plugin. > > http://cardboardrocket.com/pages/paginating_findas this hooks into AR''s find method, you''d have to issue the active record find() call to retrieve the result set by yourself and let aaf just handle the pure ferret search by using find_id_by_contents instead of find_by_contents. However any sorting done by Ferret (by score or any other sorting by Ferret field) will be lost that way. Jens -- webit! Gesellschaft f?r neue Medien mbH www.webit.de Dipl.-Wirtschaftsingenieur Jens Kr?mer kraemer at webit.de Schnorrstra?e 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66