在没有启用本地索引的情况下思考 Sphinx 迁移
Thinking Sphinx migration without enabled local indexes
从 rails 3.2(其中 运行ning 根据设计)迁移到 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(我在配置文件夹中尝试使用和不使用 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 是
gem 'mysql2', '0.3.18', :platform => :ruby
gem 'thinking-sphinx', '3.1.2'
不确定为什么 pgsql 挂断...
Sphinx 说它没有配置为支持 PostgreSQL。你最近有 re-installed Sphinx 吗?这样做时您是否明确配置了 PostgreSQL 支持?这不是默认设置,因此您需要在这样做时使用适当的配置标志。我相信使用 Homebrew 时是 --with-postgresql
,手动编译时肯定是 --with-pgsql
。
从 rails 3.2(其中 运行ning 根据设计)迁移到 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(我在配置文件夹中尝试使用和不使用 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 是
gem 'mysql2', '0.3.18', :platform => :ruby
gem 'thinking-sphinx', '3.1.2'
不确定为什么 pgsql 挂断...
Sphinx 说它没有配置为支持 PostgreSQL。你最近有 re-installed Sphinx 吗?这样做时您是否明确配置了 PostgreSQL 支持?这不是默认设置,因此您需要在这样做时使用适当的配置标志。我相信使用 Homebrew 时是 --with-postgresql
,手动编译时肯定是 --with-pgsql
。