【发布时间】:2011-08-17 16:43:42
【问题描述】:
我正在运行 rails 2.3.5 每次我运行 rake ts:start 或 ts.rebuild rake 文件时,都会使用以下内容:
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
rake aborted!
key not found
我正在运行 Sphinx,并且配置中的 sphinx.yml 是正确的:(我相信)
bin_path: /usr/bin/searchd
searchd_binary_name: searchd
indexer_binary_name: sphinx-indexer
Sphinx 似乎正在运行,就像它运行时一样(通过运行命令:service searchd start)
当我浏览到使用搜索的页面时出现的错误是:
ThinkingSphinx::SphinxError in Jobs#index
Showing app/views/jobs/index.html.erb where line #30 raised:
unknown local index 'job_core' in search request
而不是连接错误? 这里可能有很多问题,但我被卡住了。 或者,我可以重写我正在修改的代码以使用不同的搜索功能,如果是这样,什么是最好的?
【问题讨论】:
标签: ruby thinking-sphinx