Forum: Ferret When does ferret / AAF decide to reindex?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D0347a9af192d23f47056bd253743dcf?d=identicon&s=25 John Bachir (Guest)
on 2007-05-29 19:19
(Received via mailing list)
I am experience situations where accessing the index results in a
complete re-indexing of the model. I have not been able to detect a

Under what circumstances does Ferret (or AAF) decide that it needs to
rebuild the index? I'll be happy to look at the code relevant to this
if someone could direct me to it.

Bd906450f9140d2c33b9ab7f43b9c4d7?d=identicon&s=25 Matt Gordon (Guest)
on 2007-05-30 05:35
(Received via mailing list)
I'm fairly certain that a complete re-index only occurs when either a)
the index can't be found at the given 'index_dir', or b)
Model.rebuild_index is called.
The code I looked at was in ClassMethods#aaf_index which, if you follow
it into 'create_index_instance', does index on creation. Hopefully that
can at least put you on the track to debugging your problem.

This topic is locked and can not be replied to.