我的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 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输出即使安装了也找不到它?
发布于 2011-06-19 10:02:21
来自Sphinx的警告绝对可以更清楚。问题很可能是你的Sphinx思维版本有多老。旧的TS版本不知道Sphinx 2.0.x -所以我建议更新到Sphinx的最新版本(对于Rails1.2和2.x是1.4.6,对于Rails3是2.0.5 )。
发布于 2012-12-11 22:35:03
有两件事可以帮助解决这个问题。首先,正如Pat所说,将Thinking插件或gem更新到最新版本(对于Rails2是1.4.x,对于Rails3是2.0.x )是很有用的。其次,它有时有助于在配置文件中索引(您可以通过调用“specify the version of Sphinx”找到它),特别是当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
..发布于 2011-08-11 15:31:23
我面临着同样的问题,到处寻找答案,但没有任何解决方案。
对我有效的诀窍是安装旧版本的sphinx。V .9,而不是最新的测试版。
使用最新的思想- sphinx和这个版本的sphinx解决了这个问题。
https://stackoverflow.com/questions/6394533
复制相似问题