我已經使用pgsql從源代碼安裝了Sphinx,然後在我的應用程序(Rails 4.0.3)上安裝了思維-Sphinx gem(3.0.1)。並且我配置了&生成的獅身人面像配置。然後我在app/index上添加了索引,然後運行索引&通過rake ts啓動sphinx:index & & ts:start,但是我得到了下面的錯誤,讓我知道解決這個問題的方法。無法在rails 4中啓動sphinx
耙TS:索引
產生配置於/home/stc/presto/config/development.sphinx.conf
斯芬克斯2.1.7釋放(rel21-r4638)
版權(C)2001年至2014年,Andrew Aksyonoff
Copyrigh T(C)2008-2014,獅身人面像信息技術有限公司(http://sphinxsearch.com)
使用配置文件 '/home/stc/config/development.sphinx.conf' ......
FATAL:無索引在配置文件中找到'/home/stc/config/development.sphinx.conf'
耙TS:啓動
在日誌文件中,我可以看到下面的錯誤
[Wed Apr 2 10:40:49.834 2014] [14338] Child process 14339 has been forked
[Wed Apr 2 10:40:49.835 2014] [14339] listening on 127.0.0.1:9306
[Wed Apr 2 10:40:49.835 2014] [14339] WARNING: ERROR: index 'collection_core': RT indexes support prefixes and infixes with only dict=keywords - NOT SERVING
[Wed Apr 2 10:40:49.836 2014] [14339] WARNING: ERROR: index 'resource_core': RT indexes support prefixes and infixes with only dict=keywords - NOT SERVING
[Wed Apr 2 10:40:49.836 2014] [14339] WARNING: index 'collection': no such local index 'collection_core' - SKIPPING LOCAL INDEX
[Wed Apr 2 10:40:49.836 2014] [14339] WARNING: index 'collection': no valid local/remote indexes in distributed index - NOT SERVING
[Wed Apr 2 10:40:49.836 2014] [14339] WARNING: index 'resource': no such local index 'resource_core' - SKIPPING LOCAL INDEX
[Wed Apr 2 10:40:49.836 2014] [14339] WARNING: index 'resource': no valid local/remote indexes in distributed index - NOT SERVING
[Wed Apr 2 10:40:49.836 2014] [14339] FATAL: no valid indexes to serve
[Wed Apr 2 10:40:49.836 2014] [14338] Child process 14339 has been finished, exit code 1. Watchdog finishes also. Good bye!
感謝它的工作像魅力 – loganathan