On Thu, Aug 03, 2006 at 01:54:57AM +0200, Winton wrote:
Ah yes, I failed to read that it updates ActiveRecord also.
How do I turn ActiveRecord off?
if you don’t want to use activerecord, acts_as_ferret won’t be of much
use to you. aaf is all about synchronizing some AR model with a ferret
index. That is, it’s tied to database create/update operations and will
update the ferret index according to the changes made to the database.
that’s right. find_by_content finds a ferret document. From that
the mysql-id gets extracted and then ActiveRecord gets the model from
db. Using ferret fulltext-searches are a magnitude faster than searching
an innodb with LIKE if there are many records on your db and you’ll get
ferret query language for your convenience.
If you don’t want to rely on the db at all you need to work with the
documents directly. That’s possible as well.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.