I need to connect my application to external server with Sphinx. Sphinx is used by many applications and I'm not administrating it. What I need to set in my application to connect to that external server with Thinking Sphinx?
I assume I don't run rake ts:start as I'm not using local daemon and I'm not doing any indexing.
I added file thinking_sphinx.yml in my config directory with settings for address
and mysql41
. When I try to run search from console I get:
User.search('jon', indices: [ 'users' ] )
(Object doesn't support #inspect)
=>
Do I need any more settings for Thinking Sphinx to work in my application?
EDIT:
I asked Sphinx administrator to change index name to user_core
so I don't need to specify index. When I run:
User.search('jon').first
I get:
NoMethodError: undefined method `constantize' for nil:NilClass
Any help will be appreciated