Yaml sphinx config | | config/sphinx.yml

Yaml sphinx config | | config/sphinx.yml,yaml,sphinx,config,thinking-sphinx,Yaml,Sphinx,Config,Thinking Sphinx,我的狮身人面像配置为: ================================ config/sphinx.yml development: bin_path: "/usr/local/bin" searchd_binary_name: searchd indexer_binary_name: indexer 但是每次我运行一个rake ts:index Sphinx cannot be found on your system. You may need to conf

我的狮身人面像配置为:

================================ config/sphinx.yml
development:
  bin_path: "/usr/local/bin"
  searchd_binary_name: searchd
  indexer_binary_name: indexer
但是每次我运行一个
rake ts:index

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:
For more information, read the documentation:
http://freelancing-god.github.com/ts/en/advanced_config.html
Generating Configuration to config/development.sphinx.conf
Sphinx 2.0.1-beta (r2792)
Copyright (c) 2001-2011, Andrew Aksyonoff
Copyright (c) 2008-2011, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file 'config/development.sphinx.conf'...
indexing index 'post_core'...
collected 2 docs, 0.0 MB
sorted 0.0 Mhits, 100.0% done
total 2 docs, 675 bytes
total 0.006 sec, 110510 bytes/sec, 327.43 docs/sec
skipping non-plain index 'post'...
total 6 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
total 12 writes, 0.000 sec, 0.1 kb/call avg, 0.0 msec/call avg
rotating indices: succesfully sent SIGHUP to searchd (pid=19438).
Generating Configuration to config/development.sphinx.conf
Sphinx 2.0.1-beta (r2792)
Copyright (c) 2001-2011, Andrew Aksyonoff
Copyright (c) 2008-2011, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file 'config/development.sphinx.conf'...
indexing index 'post_core'...
collected 2 docs, 0.0 MB
sorted 0.0 Mhits, 100.0% done
total 2 docs, 675 bytes
total 0.006 sec, 105567 bytes/sec, 312.79 docs/sec
skipping non-plain index 'post'...
total 6 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
total 12 writes, 0.000 sec, 0.1 kb/call avg, 0.0 msec/call avg
rotating indices: succesfully sent SIGHUP to searchd (pid=19438).

那有什么问题?为什么rake输出即使安装了它也找不到它?

来自思芬克斯的警告肯定会更清楚。。。问题很可能是你对斯芬克斯的看法有多古老。旧的TS版本不知道Sphinx2.0.x-因此我建议更新到Thinking Sphinx的最新版本(Rails 1.2和2.x版本为1.4.6,Rails 3版本为2.0.5)。

我面临着同样的问题,四处寻找答案,但没有任何解决方案

对我有效的诀窍是安装sphinx的旧版本。而不是最新的测试版


在这个版本的斯芬克斯中使用最新的斯芬克斯解决了这个问题。

有两件事可以帮助解决这个问题。首先,正如Pat所说,将Thinking Sphinx插件或gem更新到最新版本(Rails 2为1.4.x,Rails 3为2.0.x)是很有用的。其次,它有时有助于在配置文件中输入(您可以通过调用“indexer”来查找),特别是当Sphinx在远程服务器上运行,并且认为Sphinx无法在本地访问Sphinx时:

production:
  ..
  version: 2.0.4  # <------- Version of Sphinx on remote server 192.168.1.10
  port: 9312 
  address: 192.168.1.10
  ..
生产:
..
版本:2.0.4#