Right, acts_as_ferret.

Here's the deal, if I delete the existing index (the whole folder for 
the model), I get an error, and it doesn't recreate the index. Isn't it 
supposed to reindex with find(:all) if the index doesn't exist?

Thanks Jan.




Jan Prill wrote:
> 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


-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to