我从一个非常大的数据库和一个非常复杂的配置文件中获得了sphinxql查询的意外结果。我很难过,想弄清楚我会得到这些结果。无论如何返回结果并同时找到它找到的实际索引数据?我试图获得一些见解/线索,这个复杂配置文件的哪一部分逐行查看是不可能的。
答案 0 :(得分:1)
以及SHOW META
,它本身也显示了很多有用的信息......
SHOW PLAN
- 如果想要诊断全文查询解析自身
http://sphinxsearch.com/docs/current.html#sphinxql-show-plan
PACKEDFACTORS()
- 功能可以告诉您超过您需要知道的排名如何计算
http://sphinxsearch.com/docs/current.html#expr-func-packedfactors
SHOW PROFILE
- 可以帮助解决效果问题
http://sphinxsearch.com/docs/current.html#sphinxql-show-profile
DESCRIBE indexname
通常有助于确切了解索引中字段和属性的内容
http://sphinxsearch.com/docs/current.html#sphinxql-describe
最后indextool --dumpheader
对于检查特定索引的配置非常有用。
http://sphinxsearch.com/docs/current.html#ref-indextool
(实际上它的其他命令也很有用!)
答案 1 :(得分:0)
您可以在sphinxql查询之后立即触发SHOW META;
以获取见解。
http://sphinxsearch.com/docs/current.html#sphinxql-show-meta