mysql - 为什么我不能使用 Thinking Sphinx 建立索引?

标签 mysql sphinx thinking-sphinx

我已经运行 rake ts:config 来为 Sphinx 生成配置文件。

但是,当我尝试运行 rake ts:index 来创建索引时,我遇到了一堆这样的错误:

indexing index 'activity_core'...
ERROR: source 'activity_core_0': unknown type 'mysql'; skipping.
ERROR: index 'activity_core': failed to configure some of the sources, will not index.

我安装并运行了适用于 osx10.9 (x86_64) 的 mysql Ver 14.14 Distrib 5.6.19。

当我运行 which indexer 时,它返回 /usr/local/bin/indexer

如果我被误导了,我深表歉意。我对 Sphinx 或索引没有太多经验。如果您需要更多信息,请发表评论。

最佳答案

看起来您的 Sphinx 版本是在没有 MySQL 支持的情况下编译的。你是如何安装 Sphinx 的?您是否在 MySQL 之前安装了 Sphinx?无论哪种方式,都值得重新安装 Sphinx。

对于那些在 OS X 上使用 Homebrew 的人来说,这样做是这样的:

brew install sphinx --mysql

同样值得注意的是,Thinking Sphinx 要求 Sphinx 编译时支持 MySQL,即使您在数据库中使用 PostgreSQL(因为 MySQL 协议(protocol)用于与 Sphinx 守护进程通信)。

关于mysql - 为什么我不能使用 Thinking Sphinx 建立索引?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24634650/

相关文章:

php - 调用两个不同mysql表的数据

MySQL 基于右表中的最新行进行连接

postgresql - 带有 postgres 的 Ubuntu 上的 SphinxQL 问题

ruby-on-rails - 加速 sphinx ?

ruby-on-rails - 我如何从部署脚本开始 Thinking Sphinx 延迟增量 rake 任务?

mysql - 陷入在 MySQL 中创建简单过程的困境 [IF 语句]

MySQL/PDO 截断数据

mysql - sphinx 搜索 : 1064 can not use HAVING with attribute not related to GROUP BY

Mysql2::Error sphinxql: 语法错误,意外 ',',期待 $end near ',@@SESSION.sql_auto_is_null = 0

ruby-on-rails - 增量索引不适用于 Thinking Sphinx