Also, just wanted to be sure everyone knows I don't have any index blocks that only have attributes. They all have attributes and fields, or just fields.
On Friday, February 24, 2012 2:38:35 PM UTC-8, mrpunkin wrote: > > rake aborted! > At least one field is necessary for an index > /Users/Bryan/.rvm/gems/ruby-1.9.3-p125@capture-rails3/gems/thinking- > sphinx-2.0.11/lib/thinking_sphinx/index/builder.rb:35:in `initialize' > /Users/Bryan/.rvm/gems/ruby-1.9.3-p125@capture-rails3/gems/thinking- > sphinx-2.0.11/lib/thinking_sphinx/index/builder.rb:22:in `new' > /Users/Bryan/.rvm/gems/ruby-1.9.3-p125@capture-rails3/gems/thinking- > sphinx-2.0.11/lib/thinking_sphinx/index/builder.rb:22:in `generate' > /Users/Bryan/.rvm/gems/ruby-1.9.3-p125@capture-rails3/gems/thinking- > sphinx-2.0.11/lib/thinking_sphinx/active_record.rb:203:in > `add_sphinx_index' > /Users/Bryan/.rvm/gems/ruby-1.9.3-p125@capture-rails3/gems/thinking- > sphinx-2.0.11/lib/thinking_sphinx/active_record.rb:170:in `block in > define_index' > /Users/Bryan/.rvm/gems/ruby-1.9.3-p125@capture-rails3/gems/thinking- > sphinx-2.0.11/lib/thinking_sphinx/active_record.rb:185:in `call' > /Users/Bryan/.rvm/gems/ruby-1.9.3-p125@capture-rails3/gems/thinking- > sphinx-2.0.11/lib/thinking_sphinx/active_record.rb:185:in `block in > define_indexes' > /Users/Bryan/.rvm/gems/ruby-1.9.3-p125@capture-rails3/gems/thinking- > sphinx-2.0.11/lib/thinking_sphinx/active_record.rb:184:in `each' > /Users/Bryan/.rvm/gems/ruby-1.9.3-p125@capture-rails3/gems/thinking- > sphinx-2.0.11/lib/thinking_sphinx/active_record.rb:184:in > `define_indexes' > /Users/Bryan/.rvm/gems/ruby-1.9.3-p125@capture-rails3/gems/thinking- > sphinx-2.0.11/lib/thinking_sphinx/configuration.rb:158:in `block in > generate' > /Users/Bryan/.rvm/gems/ruby-1.9.3-p125@capture-rails3/gems/thinking- > sphinx-2.0.11/lib/thinking_sphinx/configuration.rb:156:in `each' > /Users/Bryan/.rvm/gems/ruby-1.9.3-p125@capture-rails3/gems/thinking- > sphinx-2.0.11/lib/thinking_sphinx/configuration.rb:156:in `generate' > /Users/Bryan/.rvm/gems/ruby-1.9.3-p125@capture-rails3/gems/thinking- > sphinx-2.0.11/lib/thinking_sphinx/configuration.rb:172:in `build' > > I have traced this down to it not actually thinking any columns are > being passed to the indexes method when trying to generate the > ThinkingSphinx::Index::Builder instance. Running Model.define_indexes > directly with a block in console results in the same error. I have > switched all my field and attribute names to symbols instead of > literals in an attempt to fix it, but still run into the same error. > I'm trying to upgrade my app from Rails 2.3.11 to Rails 3.2.1 and this > is stopping me from being able to interact with my indexed models at > the moment. Any help is much appreciated. Thanks. -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/Zx0jMRwuMMQJ. 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.
