【发布时间】:2014-11-20 09:29:42
【问题描述】:
当我运行 ThinkingSphinx 索引任务 bundle exec rake ts:index 时出现错误。即,
unknown type 'mysql'; skipping.
错误日志:生成配置到 ../../config/development.sphinx.conf 狮身人面像 2.2.4-id64-release (r4806) 版权所有 (c) 2001-2014,Andrew Aksyonoff 版权所有 (c) 2008-2014, 狮身人面像技术公司 (http://sphinxsearch.com)
使用配置文件 '../../config/development.sphinx.conf'... 警告: 密钥“sql_query_info”已从 Sphinx 中永久删除 配置。有关详细信息,请参阅文档。警告:关键 'charset_type' 已从 Sphinx 配置中永久删除。
有关详细信息,请参阅文档。索引索引“video_core”... 错误:源“video_core_0”:未知类型“mysql”;跳过。错误: index 'video_core': 部分源配置失败,不会 指数。跳过非普通索引“视频”...总共 0 次读取,0.000 秒, 0.0 kb/调用平均值,0.0 毫秒/调用平均值总计 0 次写入,0.000 秒,0.0 kb/调用平均值,0.0 毫秒/调用平均值
失败的解决方案:
- 在 Mavericks 上使用 Homebrew 重新安装 Sphinx。
brew install sphinx --with-mysql=/usr/local/Cellar/mysql/5.6.20_1/include/mysql brew install sphinx --with-mysql
【问题讨论】:
标签: mysql ruby-on-rails sphinx thinking-sphinx