I am trying to use sunspot 1.2.1 with rails 3.0.5 on websolr.
Everything is working properly locally but for some reason I get this
error when we try to use it with websolr.
I have setup my yml file like this (with my key in there):
staging:
solr:
hostname:
index.websolr.com
path: /solr/MYWEBSOLRKEY
port: 8983
log_level: WARNING
I am getting a weird error that doesn't tell me anything about my
connection to the server being good or bad. Any ideas on how to
figure this out?
The error being thrown:
NoMethodError: undefined method `logger' for Sunspot::Rails:Module
from (eval):5:in `rescue in index'
from (eval):2:in `index'
from /home/thredup/.rvm/gems/ruby-1.9.2-p180@tu3/gems/sunspot-1.2.1/
lib/sunspot.rb:175:in `index'
from /home/thredup/.rvm/gems/ruby-1.9.2-p180@tu3/gems/
sunspot_rails-1.2.1/lib/sunspot/rails/searchable.rb:349:in
`solr_index'
from /home/thredup/.rvm/gems/ruby-1.9.2-p180@tu3/gems/
sunspot_rails-1.2.1/lib/sunspot/rails/searchable.rb:405:in
`maybe_auto_index'
from /home/thredup/.rvm/gems/ruby-1.9.2-p180@tu3/gems/
activesupport-3.0.5/lib/active_support/callbacks.rb:485:in
`_run_save_callbacks'
from /home/thredup/.rvm/gems/ruby-1.9.2-p180@tu3/gems/
activerecord-3.0.5/lib/active_record/callbacks.rb:277:in
`create_or_update'
from /home/thredup/.rvm/gems/ruby-1.9.2-p180@tu3/gems/
activerecord-3.0.5/lib/active_record/persistence.rb:39:in `save'
from /home/thredup/.rvm/gems/ruby-1.9.2-p180@tu3/gems/
activerecord-3.0.5/lib/active_record/validations.rb:43:in `save'
from /home/thredup/.rvm/gems/ruby-1.9.2-p180@tu3/gems/
activerecord-3.0.5/lib/active_record/attribute_methods/dirty.rb:21:in
`save'
from /home/thredup/.rvm/gems/ruby-1.9.2-p180@tu3/gems/
activerecord-3.0.5/lib/active_record/transactions.rb:240:in `block (2
levels) in save'
from /home/thredup/.rvm/gems/ruby-1.9.2-p180@tu3/gems/
activerecord-3.0.5/lib/active_record/transactions.rb:292:in `block in
with_transaction_returning_status'
from /home/thredup/.rvm/gems/ruby-1.9.2-p180@tu3/gems/
activerecord-3.0.5/lib/active_record/connection_adapters/abstract/
database_statements.rb:139:in `transaction'
from /home/thredup/.rvm/gems/ruby-1.9.2-p180@tu3/gems/
activerecord-3.0.5/lib/active_record/transactions.rb:207:in
`transaction'
from /home/thredup/.rvm/gems/ruby-1.9.2-p180@tu3/gems/
activerecord-3.0.5/lib/active_record/transactions.rb:290:in
`with_transaction_returning_status'
from /home/thredup/.rvm/gems/ruby-1.9.2-p180@tu3/gems/
activerecord-3.0.5/lib/active_record/transactions.rb:240:in `block in
save'
from /home/thredup/.rvm/gems/ruby-1.9.2-p180@tu3/gems/
activerecord-3.0.5/lib/active_record/transactions.rb:251:in
`rollback_active_record_state!'
from /home/thredup/.rvm/gems/ruby-1.9.2-p180@tu3/gems/
activerecord-3.0.5/lib/active_record/transactions.rb:239:in `save'