Hi folks!
Just wanted to let you know that I released aaf 0.4.0 on last weekend.
Besides the DRb server it also includes a new lazy loading feature that
lets you do ferret searches without actually loading any records from the
DB. Useful e.g. for live searches:
model:
class MyModel
acts_as_ferret :fields => { :title => { :store => :yes }, :content => {} }
end
controller:
results = MyModel.find_by_contents(query, :lazy => true)
you can use the result objects as you would your AR records, if you
query any attribute not stored in the index, the whole record will be
loaded from the database. So, as long as you only access record.id and
record.title in the example, no DB call will be made.
I'll post some more documentation about this soon. For now, there's some
more info about the DRb server on my blog:
http://www.jkraemer.net/2007/3/24/acts_as_ferret-0-4-0-rie
--
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[EMAIL PROTECTED] | www.webit.de
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk