I have installet the Ferret gem v. 0.11.6 and the latest acts_as_ferret plugin from
svn://projects.jkraemer.net/acts_as_ferret/tags/stable/acts_as_ferret
I've followed the instructions here http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer to set up the server, and put acts_as_ferret :remote => true on one of my models (Ad)
I can also start the ferret_server, but when starting the Rails application (with mongrel) and fetching a page, I get the following errors in the log:
Asked for a remote server ? true, ENV["FERRET_USE_LOCAL_INDEX"] is nil, looks like we are not the server Will use remote index server which should be available at druby://localhost:9010 Ad Columns (0.004026) SHOW FIELDS FROM `ads` default field list: [:keywords, :family_tree_other, :description, :sex, :top_ad, :background_color, :family_tree, :notified_expired, :ad_kind_id, :callname, :show_bold_border, :race_id, :castrated, :display_type, :homepage_url, :distinctive_features, :email, :read_count, :age, :duration, :title, :show_contact, :ts_create, :age_unit, :price, :show_image_on_list, :phone2, :ts_display, :color_id, :show_bold_text, :phone1, :disappeared_from, :qty_available, :date_sale_ready, :phone3, :user_id, :ts_expire]
ArgumentError (wrong number of arguments (1 for 0)): (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:19:in `ferret_enabled?' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:19:in `index_records' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:19:in `each' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:19:in `index_records' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:29:in `measure_time' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:18:in `index_records' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_extensions.rb:52:in `index_model' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/class_methods.rb:66:in `records_for_rebuild' (druby://localhost:9010) /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction' (druby://localhost:9010) /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/transactions.rb:80:in `transaction' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/class_methods.rb:61:in `records_for_rebuild' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_extensions.rb:51:in `index_model' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_extensions.rb:39:in `index_models' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_extensions.rb:39:in `each' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_extensions.rb:39:in `index_models' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_server.rb:143:in `rebuild_index' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_server.rb:170:in `reconnect_when_needed' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_server.rb:141:in `rebuild_index' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_server.rb:164:in `with_class' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_server.rb:137:in `rebuild_index' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_server.rb:122:in `ensure_index_exists' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_server.rb:164:in `with_class' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_server.rb:119:in `ensure_index_exists'
Any idea what I might have missed?
- Carsten