Monday, January 3, 2011

Thinking Sphinx Issue: Connection to Sphinx Daemon (searchd) failed

Thinking Sphinx may will not work when rails files path has spaces in it, so "My Documents" or "firstname lastname" will not work.
So either create a new directory under c:\ and then sphinx.yml folder into rails config folder and add these into it
development:
    bin_path: C:/Sphinx/bin
    config_file: C:/Users/projects/rails_app/config/development.sphinx.conf

You can also create a new account and then make sure if all the path is set in environment variables.
and then if you follow the above instructions and if you try rake ts:index then thinking sphinx will work fine.