Thinking Problem Sphinx with Rails 2.3.5

I just installed Sphinx (distro: archlinux) loading the source code. Then I installed the Thinking Sphinx plugin for Rails.

I followed the official setup and this Screencast from Ryan Bates , but when I try to index the models, it gives me this error:

$ rake thinking_sphinx:index
(in /home/benoror/Dropbox/Proyectos/cotizahoy)

Sphinx cannot be found on your system. You may need to configure the following
settings in your config/sphinx.yml file:
  * bin_path
  * searchd_binary_name
  * indexer_binary_name

For more information, read the documentation:
http://freelancing-god.github.com/ts/en/advanced_config.html
Generating Configuration to /home/benoror/Dropbox/Proyectos/cotizahoy/config/development.sphinx.conf
sh: indexer: command not found

I tried to start the daemon manually (/ usr / bin / sphinx-searchd) by modifying the config / sphinx.yml file:

devlopment:
searchd_binary_name: sphinx-searchd
indexer_binary_name: sphinx-indexer

But it shows the same error, any ideas?

+5
source share
3 answers

you need to configure in your yaml file bin_path: /usr/bin/sphinx-searchd

+7
source

, Sphinx think_sphinx ,

config/sphinx.yml

:

development:
  bin_path: "C:/Sphinx/bin"
+3

, . -, /gem Thinking Sphinx. (1.3.16) ThinkingSphinx. Rails 2, 1.4.11 . rake thinking_sphinx:version.

curl -L https://github.com/freelancing-god/thinking-sphinx/tarball/v1.4.11 \
  -o thinking-sphinx.tar.gz
tar -xvf thinking-sphinx.tar.gz -C plugins
mv plugins/* your_project/vendor/plugins/thinking-sphinx

-, /gem Thinking Sphinx , Sphinx ThinkingSphinx , Sphinx .

production:
  ..
  version: 2.0.4  # Version of Sphinx on remote server 192.168.1.4
  port: 9312  
  address: 192.168.1.4
0

All Articles