MySQL+Sphinx 只有一个索引有效,其他都无效

标签 mysql sphinx

我已经创建了索引,以下是信息:

indexing index 'acdphotos'...
collected 0 docs, 0.0 MB
total 0 docs, 0 bytes
total 0.065 sec, 0 bytes/sec, 0.00 docs/sec
indexing index 'acdphotos_delta'...
collected 0 docs, 0.0 MB
total 0 docs, 0 bytes
total 0.033 sec, 0 bytes/sec, 0.00 docs/sec
indexing index 'acdusers'...
collected 11 docs, 0.0 MB
sorted 0.0 Mhits, 99.1% done
total 11 docs, 311 bytes
total 0.008 sec, 34736 bytes/sec, 1228.63 docs/sec
indexing index 'acdalbums'...
collected 0 docs, 0.0 MB
total 0 docs, 0 bytes
total 0.006 sec, 0 bytes/sec, 0.00 docs/sec
total 2 reads, 0.000 sec, 4.1 kb/call avg, 0.1 msec/call avg
total 19 writes, 0.001 sec, 1.2 kb/call avg, 0.0 msec/call avg

但是当我尝试搜索某些内容时,只有用户可以返回一些结果,而照片和相册则不会返回任何内容。顺便说一句,“acdphotos_delta”是基于“acdphotos”的增量索引。

最佳答案

查看该行:

collected 0 docs, 0.0 MB

这意味着没有任何内容被索引。 检查您的 sql_query 并确保它从数据库中获取一些数据。

关于MySQL+Sphinx 只有一个索引有效,其他都无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9731372/

相关文章:

PHP、MySQL - 获取从单个 JOIN 返回的多个可识别行?

sql - Android MySQL php+JSON 替代方案

mysql - 管理 mysql 数据库

mysql - 我如何使用毫秒(bigInt)值来使用 mysql 分区?

mysql - sphinx 搜索问题

mysql - 我可以在 MYSQL 的多表 SELECT 中连接表的某些字段吗?

java - 不指定数据库的JDBC MYSQL连接?

real-time - Sphinx 重新索引 RT 索引

java - Sphinx查询从mysql转换

mysql - ThinkingSphinx group_by 导致搜索缓慢