sunspot/sunspot — Issue #140: undefined method `solr_reindex' for #<Class:0x007ff0fafb77f8> 
Author: tute
Created: 2011-12-07 14:01:12+00:00
State: open

Hi,

When I run `rake sunspot:reindex --trace` on sunspot 1.3.0.rc6 I get the following error:

** Invoke sunspot:reindex (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute sunspot:reindex
Skipping progress bar: for progress reporting, add gem 'progress_bar' to your Gemfile
rake aborted!
undefined method `solr_reindex' for #
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.1.3/lib/active_record/base.rb:1088:in `method_missing'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/sunspot_rails-1.3.0.rc6/lib/sunspot/rails/tasks.rb:54:in `block (3 levels) in '
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/sunspot-1.3.0.rc6/lib/sunspot/class_set.rb:16:in `each'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/sunspot-1.3.0.rc6/lib/sunspot/class_set.rb:16:in `each'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/sunspot_rails-1.3.0.rc6/lib/sunspot/rails/tasks.rb:53:in `block (2 levels) in '
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/task.rb:205:in `call'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/task.rb:205:in `block in execute'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/task.rb:200:in `each'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/task.rb:200:in `execute'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/tute/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/task.rb:144:in `invoke'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/application.rb:114:in `invoke_task'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/application.rb:93:in `block in top_level'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/application.rb:93:in `each'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/application.rb:93:in `top_level'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/application.rb:66:in `block in run'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/application.rb:131:in `standard_exception_handling'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/application.rb:63:in `run'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/bin/rake:37:in `'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/bin/rake:19:in `load'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/bin/rake:19:in `

'
Tasks: TOP => sunspot:reindex

How can I fix it? Meanwhile, does Sunspot.index(Model.all) work in the same way, or how do I rebuild the index?

Thanks in advance,

Tute.