freelancing-god/thinking-sphinx — Issue #312: ThinkingSphinx::SphinxError: unknown local index 'quotation_core' in search request
Author: ejvalmores
Created: 2011-11-28 10:38:04+00:00
State: open

Hi,

I am using thinking sphinx for our application and set the port to :
--------
listen = 127.0.0.1:9313
-------
in our production.sphinx.conf.

everything went smoothly (migration, rake ts:reindex RAILS_ENV=production, etc..).

but when i try to search through console i get this:
----------------------------
Loading production environment (Rails 3.0.9)
ruby-1.9.2-p180 :001 > Quotation.search ''
ThinkingSphinx::SphinxError: unknown local index 'quotation_core' in search request
from /home/catapult/.rvm/gems/ruby-1.9.2-p180@smart_insurance/gems/thinking-sphinx-2.0.10/lib/thinking_sphinx/search.rb:423:in `block in populate'
from /home/catapult/.rvm/gems/ruby-1.9.2-p180@smart_insurance/gems/thinking-sphinx-2.0.10/lib/thinking_sphinx/search.rb:568:in `call'
from /home/catapult/.rvm/gems/ruby-1.9.2-p180@smart_insurance/gems/thinking-sphinx-2.0.10/lib/thinking_sphinx/search.rb:568:in `retry_on_stale_index'
from /home/catapult/.rvm/gems/ruby-1.9.2-p180@smart_insurance/gems/thinking-sphinx-2.0.10/lib/thinking_sphinx/search.rb:411:in `populate'
from /home/catapult/.rvm/gems/ruby-1.9.2-p180@smart_insurance/gems/thinking-sphinx-2.0.10/lib/thinking_sphinx/search.rb:176:in `method_missing'
from /home/catapult/.rvm/gems/ruby-1.9.2-p180@smart_insurance/gems/railties-3.0.9/lib/rails/commands/console.rb:44:in `start'
from /home/catapult/.rvm/gems/ruby-1.9.2-p180@smart_insurance/gems/railties-3.0.9/lib/rails/commands/console.rb:8:in `start'
from /home/catapult/.rvm/gems/ruby-1.9.2-p180@smart_insurance/gems/railties-3.0.9/lib/rails/commands.rb:23:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'
ruby-1.9.2-p180 :002 >
----------------------------

I already checked and the quotation_core is in there (under RAILS_ROOT/db/sphinx/production/).

I have been using thinking sphinx for my other apps and they don't have any problems.

please help.. :(

Cheers,
Elmar John N. Valmores