Hi guest,

you are mixing up too different projects: ferret the searchengine library and acts_as_ferret which builds upon this library and provides a convienient way of integrating ferret into a rails project.

To answer your question: Of course you are able to index existing records. From a ferret perspective there is no difference between a new record (document in ferret terms) and existing ones. acts_as_ferret is indeed using the callback methods of activerecord but nonetheless it is able to build up an index from existing records. It's default behaviour is to index the existing records if no index on a model that acts_as_ferret exists yet. Have a look at: http://projects.jkraemer.net/acts_as_ferret/rdoc/classes/FerretMixin/Acts/ARFerret/ClassMethods.html#M000007

Cheers,
Jan

On 7/19/06, Guest <[EMAIL PROTECTED]> wrote:
Does ferret only index, when you create, or udpate a record?

Is there a way to make it index prexisting records?

Thanks.

--
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

Reply via email to