-->

Thinking Sphinx after deployment - ThinkingSphinx:

2019-08-05 07:31发布

问题:

I check this topic: Sphinx error: unknown local index "INDEX_NAME" in search request , but it's closed and it's not resolve problem in my rails application.

I update TS to 3.0.2, and include it to deploy.rb. I also change code in model. Now it works in development, and some examples work in test, and some not. But after successful deployment I get error:

ThinkingSphinx::SphinxError (unknown local index 'user_core' in search request):

I try rebuild, restart, and other things, but it doesn't work :(

Can anybody help me?

Thanks!

回答1:

It looks like there's already a Sphinx daemon running that Thinking Sphinx hasn't stopped (if you're still getting the same error) so I'd recommend killing that rogue searchd process (which you should be able to find via ps aux | grep searchd - and, if the permissions are fine, killall searchd will stop that Sphinx process).