On Tue, Nov 28, 2006 at 07:16:15PM +0100, Chris Williams wrote: > Hello all, > I'm using AAF right now to index my ~3million db records. However, any > additions to these records are added to the database through an external > script so the aaf activerecord hooks will not catch any updates. Since > new records are only added rarely, I figured I could just add the new > records manually in ferret from some type of script. I've been looking > at the ferret documentation, but I'm sort of lost about how to update > the aaf ferret index from a ruby script. I was wondering if anyone had > any examples on how to do this.
You'd have to mimic the way how aaf uses the index in your script. the to_doc method in instance_methods.rb should be a goot starting point. It would be way easier to use ActiveRecord in the script and run it through script/runner - that way aaf will catch the updates. 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 _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

