Jens Kraemer wrote: > Hi! > > On Mon, May 22, 2006 at 09:37:54AM +0200, Jan Prill wrote: >> symbols pointing to instance methods of your model here, i.e. >> to retrieve and index data from a related model. >> " > > right, just use the method name as a symbol in the fields list: > > class MyModel < ActiveRecord::Base > acts_as_ferret :fields => [ :full_text, 'title' ] > def full_text > # return content to be indexed here > end > end > > where title is a normal database backed attribute. > > Cheers, > Jens > > >> > >> >-- >> >Posted via http://www.ruby-forum.com/. >> >_______________________________________________ >> >Ferret-talk mailing list >> >[email protected] >> >http://rubyforge.org/mailman/listinfo/ferret-talk >> > > >> _______________________________________________ >> Ferret-talk mailing list >> [email protected] >> http://rubyforge.org/mailman/listinfo/ferret-talk > > -- > 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
Thanks Jens, Now I've got the approach figured out, but I seem to be having problems yet. It seems that my full_text method is not actually being indexed. In fact, I've placed a breakpoint inside the method and it seems that it's never even being called. Meanwhile, Ferret still manages to update index with every new instance of MyModel, but without the full_text value. I also placed a breakpoint in vendor/plugins/acts_as_ferret/rebuild_index.rb and it appears that IT is never called when a new model instance is created. Any thoughts? Really appreciate your help, Tom -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

