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.
I’m using the “Paginating Find” plugin and combining it with the
following guide to get Digg.com style pagination looking links.
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?
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:
as 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 [email protected]
Schnorrstraße 76 Tel +49 351 46766 0
D-01069 Dresden Fax +49 351 46766 66
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.