从rails 3.2(根据设计运行)迁移到rails 4.2时,4.2上的ThinkingSphinx应用程序将运行rebuild
和restart
,但是没有使用以下错误流创建索引
using config file '/Users/main/r/saim/config/development.sphinx.conf'...
WARNING: key 'sql_query_info' was permanently removed from Sphinx configuration. Refer to documentation for details.
WARNING: key 'charset_type' was permanently removed from Sphinx configuration. Refer to documentation for details.
WARNING: key 'sql_query_info' was permanently removed from Sphinx configuration. Refer to documentation for details.
WARNING: key 'charset_type' was permanently removed from Sphinx configuration. Refer to documentation for details.
WARNING: key 'sql_query_info' was permanently removed from Sphinx configuration. Refer to documentation for details.
WARNING: 7 more warnings skipped.
indexing index 'azienda_core'...
ERROR: source 'azienda_core_0': unknown type 'pgsql'; skipping.
ERROR: index 'azienda_core': failed to configure some of the sources, will not index.
thiking_sphinx.yml配置为:
development:
bin_path: /usr/local/bin
pid_file: /Users/main/r/saim/shared/tmp/searchd.pid
configuration_file: /Users/main/r/saim/config/development.sphinx.conf
indices_location: /Users/main/r/saim/shared/sphinx
use_64_bit: true
# enable_star: true
min_infix_len: 2
# max_matches: 1000
mysql41: 9313
mem_limit: 128M
utf8: true
和sphinx.yml(我在config文件夹中尝试使用和不使用spinx.yml,结果相同)
development:
bin_path: /usr/local/bin
searchd_file_path: /Users/main/r/saim/shared/sphinx
use_64_bit: true
enable_star: 1
min_infix_len: 1
max_matches: 10000
port: 9313
已安装的宝石
gem 'mysql2', '0.3.18', :platform => :ruby
gem 'thinking-sphinx', '3.1.2'
不确定为什么pgsql是挂断...
答案 0 :(得分:1)
Sphinx表示它没有配置PostgreSQL支持。你最近重新安装了Sphinx吗?你这样做时是否明确配置了PostgreSQL支持?这不是默认值,因此在执行此操作时您需要使用适当的配置标志。我相信使用Homebrew时--with-postgresql
,手动编译时肯定是--with-pgsql
。