When does ferret / AAF decide to reindex?

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.


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.