To edit pages or tickets please login with username/password: aaf/aaf

Ticket #218 (closed defect: wontfix)

Opened 4 months ago

Last modified 2 months ago

auto index rebuild is broken using act_methods

Reported by: aaf Assigned to: jk
Priority: blocker Milestone:
Component: 0plugin Version:
Keywords: Cc:

Description

The index directory is created, but the model is set at this stage, so no reindexing is launched. Later when the model is updated, the index already exists, so again no reindexing.

{{{ # -- model -- class Foo < ActiveRecord::Base

acts_as_ferret

end

# -- acts_as_ferret.rb#240..246 (Rev. 339) --

unless index = ferret_indexes[index_name]

# index definition on the fly # default to all attributes of this class

options[:fields] = clazz.new.attributes.keys.map { |k| k.to_sym } index = define_index index_name, options

end index.register_class(clazz, options)

}}}

Line 244 - creates the index => and the files Line 246 - registration of the model => no reindexing possible

Change History

08/03/08 11:02:18 changed by jk

  • status changed from new to closed.
  • resolution set to wontfix.

Automatic index rebuilds were a cause of problems for lots of people in the past, so I dont intend to make this work again. I think it's better to take care of your index yourself, and manually call Model.rebuild_index as you see fit. Or use the provided rake tasks and/or capistrano deployment recipes from trunk/.

To edit pages or tickets please login with username/password: aaf/aaf