no enabled local indexes to search

I'm getting the following when I'm trying to use search:

Course.search ''
ThinkingSphinx::SphinxError: no enabled local indexes to search
/app/.bundle/gems/ruby/1.9.1/gems/thinking-sphinx-1.4.5/lib/thinking_sphinx/search.rb:398:in `block in populate'
/app/.bundle/gems/ruby/1.9.1/gems/thinking-sphinx-1.4.5/lib/thinking_sphinx/search.rb:540:in `call'
/app/.bundle/gems/ruby/1.9.1/gems/thinking-sphinx-1.4.5/lib/thinking_sphinx/search.rb:540:in `retry_on_stale_index'
/app/.bundle/gems/ruby/1.9.1/gems/thinking-sphinx-1.4.5/lib/thinking_sphinx/search.rb:385:in `populate'

heroku rake fs:rebuild works fine.

  1. Hi Vitaly

    Can you let me know which app this is running on? Also, can you confirm there is an index defined for the Course model?

    Cheers

    Pat

  2. I already solved that. the indexing was failing. It was working on mysql before and on posture I had to manually specify couple of group_by columns.

  3. Pat Allan closed this discussion on 26 Dec, 2011 09:23 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions