I'm not sure what is going on here at all.  I have two models that I
want to use the new(ish) delayed indexing on.  One of them seems to
have no problem with it at all but on the other one I get the error
below.  Note that I also ONLY get that error when specifying
set_property :delta => :delayed inside my define_index block.  If I
use the default delta or :delta => :datetime, I do not get any
errors.  I'm wondering if it's some strange interaction between
plugins I'm using in my User model.  The two that come to mind are
Paperclip and Authlogic.  Some Authlogic suff even shows up in the
stack not that that necessarily means anything.

My index looked like this at the time of the error (since switched it
to :datetime instead of :delayed):

  define_index do
    indexes [first_name, last_name], :as => :name, :sortable => true
    indexes description
    indexes email
    has active
    set_property :delta => :delayed
  end

Stack Trace:

NoMethodError (undefined method `delta=' for #<User:0x34cf844>):
    /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/attribute_methods.rb:255:in `method_missing'
    /vendor/plugins/thinking-sphinx/lib/thinking_sphinx/deltas/
default_delta.rb:33:in `toggle'
    /vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record/
delta.rb:57:in `toggle_delta'
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/callbacks.rb:178:in `send'
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/callbacks.rb:178:in `evaluate_method'
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/callbacks.rb:166:in `call'
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/callbacks.rb:93:in `run'
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/callbacks.rb:92:in `each'
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/callbacks.rb:92:in `send'
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/callbacks.rb:92:in `run'
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/callbacks.rb:277:in `run_callbacks'
    /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/callbacks.rb:315:in `callback'
    /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/callbacks.rb:221:in `create_or_update'
    /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/base.rb:2383:in `save_without_validation'
    /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/validations.rb:1009:in `save_without_dirty'
    /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/dirty.rb:79:in `save_without_transactions'
    /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/transactions.rb:179:in `send'
    /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/transactions.rb:179:in
`with_transaction_returning_status'
    /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/connection_adapters/abstract/database_statements.rb:
66:in `transaction'
    /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/transactions.rb:129:in `transaction'
    /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/transactions.rb:138:in `transaction'
    /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/transactions.rb:178:in
`with_transaction_returning_status'
    /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/transactions.rb:146:in
`save_without_trace_ActiveRecord___self_class_name__save'
    /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/transactions.rb:158:in `rollback_active_record_state!'
    /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/transactions.rb:146:in
`save_without_trace_ActiveRecord___self_class_name__save'
    /vendor/plugins/newrelic_rpm/lib/new_relic/agent/method_tracer.rb:
138:in `save_without_trace_ActiveRecord_save'
    /vendor/plugins/newrelic_rpm/lib/new_relic/agent/method_tracer.rb:
41:in `trace_method_execution_with_scope'
    /vendor/plugins/newrelic_rpm/lib/new_relic/agent/method_tracer.rb:
137:in `save_without_trace_ActiveRecord_save'
    /vendor/plugins/newrelic_rpm/lib/new_relic/agent/method_tracer.rb:
141:in `save_without_trace_ActiveRecord_all'
    /vendor/plugins/newrelic_rpm/lib/new_relic/agent/method_tracer.rb:
141:in `save'
    /vendor/plugins/authlogic/lib/authlogic/orm_adapters/
active_record_adapter/acts_as_authentic/session_maintenance.rb:25:in
`save_without_session_maintenance'
    /vendor/plugins/authlogic/lib/authlogic/session/base.rb:313:in
`save_record'
    /vendor/plugins/authlogic/lib/authlogic/session/base.rb:70:in
`find'
    /app/controllers/application.rb:41:in `current_user_session'
    /app/controllers/application.rb:46:in `current_user'
    /app/controllers/application.rb:50:in `logged_in?'
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/callbacks.rb:178:in `send'
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/callbacks.rb:178:in `evaluate_method'
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/callbacks.rb:196:in `should_run_callback?'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/filters.rb:157:in `should_run_callback?'
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/callbacks.rb:166:in `call'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/filters.rb:225:in `call'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/filters.rb:629:in `run_before_filters'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/filters.rb:615:in `call_filters'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/filters.rb:610:in `perform_action_without_benchmark'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
    /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/rescue.rb:136:in `perform_action_without_caching'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/caching/sql_cache.rb:13:in
`perform_action_without_newrelic_trace'
    /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache'
    /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/query_cache.rb:8:in `cache'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/caching/sql_cache.rb:12:in
`perform_action_without_newrelic_trace'
    /vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/
controller_instrumentation.rb:123:in `perform_action'
    /vendor/plugins/newrelic_rpm/lib/new_relic/agent/method_tracer.rb:
41:in `trace_method_execution_with_scope'
    /vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/
controller_instrumentation.rb:109:in `perform_action'
    /vendor/plugins/newrelic_rpm/lib/new_relic/agent/method_tracer.rb:
18:in `trace_method_execution_no_scope'
    /vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/
controller_instrumentation.rb:103:in `perform_action'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/base.rb:524:in `send'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/base.rb:524:in `process_without_filters'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/filters.rb:606:in
`process_without_session_management_support'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/session_management.rb:134:in `sass_old_process'
    /vendor/gems/haml-2.0.6/lib/sass/plugin/rails.rb:19:in `process'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/base.rb:392:in `process'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:183:in `handle_request'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:110:in `dispatch_unlocked'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:123:in `dispatch_without_newrelic'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:122:in `synchronize'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:122:in `dispatch_without_newrelic'
    /vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/
dispatcher_instrumentation.rb:44:in `dispatch'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:132:in `dispatch_cgi'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:39:in `dispatch'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/
rails.rb:76:in `process'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/
rails.rb:74:in `synchronize'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/
rails.rb:74:in `process'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
159:in `process_client'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
158:in `each'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
158:in `process_client'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
285:in `run'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
285:in `initialize'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
285:in `new'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
285:in `run'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
268:in `initialize'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
268:in `new'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
268:in `run'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
configurator.rb:282:in `run'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
configurator.rb:281:in `each'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
configurator.rb:281:in `run'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:
128:in `run'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
command.rb:212:in `run'
    /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:
281
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:142:in
`load_without_new_constant_marking'
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:142:in `load'
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:521:in `new_constants_in'
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:142:in `load'
    /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/servers/
mongrel.rb:64
    /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
    /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:153:in `require'
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:521:in `new_constants_in'
    /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:153:in `require'
    /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/
server.rb:49
    /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
    /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
    ./script/server:3

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to