Thanks Pat - output is below:
irb(main):004:0> @results = ThinkingSphinx.search('microsoft', :classes =>
[Story, Feature, Post], :per_page => 10, :page => 1).to_a
Sphinx Query (16.1ms) SELECT * FROM `feature_core`, `feature_delta`,
`post_core`, `post_delta`, `story_core`, `story_delta` WHERE
MATCH('microsoft') AND `sphinx_deleted` = 0 LIMIT 0, 10
Sphinx Found 1067 results
NoMethodError: undefined method `unscoped' for Object:Class
from
/app/vendor/bundle/ruby/2.1.0/gems/thinking-sphinx-3.1.3/lib/thinking_sphinx/middlewares/active_record_translator.rb:59:in
`block in results_for_models'
from
/app/vendor/bundle/ruby/2.1.0/gems/thinking-sphinx-3.1.3/lib/thinking_sphinx/middlewares/active_record_translator.rb:57:in
`each'
from
/app/vendor/bundle/ruby/2.1.0/gems/thinking-sphinx-3.1.3/lib/thinking_sphinx/middlewares/active_record_translator.rb:57:in
`inject'
from
/app/vendor/bundle/ruby/2.1.0/gems/thinking-sphinx-3.1.3/lib/thinking_sphinx/middlewares/active_record_translator.rb:57:in
`results_for_models'
from
/app/vendor/bundle/ruby/2.1.0/gems/thinking-sphinx-3.1.3/lib/thinking_sphinx/middlewares/active_record_translator.rb:20:in
`call'
from
/app/vendor/bundle/ruby/2.1.0/gems/thinking-sphinx-3.1.3/lib/thinking_sphinx/middlewares/active_record_translator.rb:6:in
`block in call'
from
/app/vendor/bundle/ruby/2.1.0/gems/thinking-sphinx-3.1.3/lib/thinking_sphinx/middlewares/active_record_translator.rb:5:in
`each'
from
/app/vendor/bundle/ruby/2.1.0/gems/thinking-sphinx-3.1.3/lib/thinking_sphinx/middlewares/active_record_translator.rb:5:in
`call'
from
/app/vendor/bundle/ruby/2.1.0/gems/thinking-sphinx-3.1.3/lib/thinking_sphinx/middlewares/inquirer.rb:19:in
`call'
from
/app/vendor/bundle/ruby/2.1.0/gems/thinking-sphinx-3.1.3/lib/thinking_sphinx/middlewares/geographer.rb:11:in
`call'
from
/app/vendor/bundle/ruby/2.1.0/gems/thinking-sphinx-3.1.3/lib/thinking_sphinx/middlewares/sphinxql.rb:14:in
`call'
from
/app/vendor/bundle/ruby/2.1.0/gems/thinking-sphinx-3.1.3/lib/thinking_sphinx/middlewares/stale_id_filter.rb:10:in
`call'
from
/app/vendor/bundle/ruby/2.1.0/gems/middleware-0.1.0/lib/middleware/runner.rb:31:in
`call'
from
/app/vendor/bundle/ruby/2.1.0/gems/middleware-0.1.0/lib/middleware/builder.rb:102:in
`call'
from
/app/vendor/bundle/ruby/2.1.0/gems/thinking-sphinx-3.1.3/lib/thinking_sphinx/search.rb:67:in
`populate'
from
/app/vendor/bundle/ruby/2.1.0/gems/thinking-sphinx-3.1.3/lib/thinking_sphinx/search.rb:91:in
`to_a'
from (irb):4
from
/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.5/lib/rails/commands/console.rb:90:in
`start'
from
/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.5/lib/rails/commands/console.rb:9:in
`start'
from
/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.5/lib/rails/commands.rb:62:in
`<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'irb(main):005:0>
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.