How to see what Sphinx is actually finding?

无人久伴 提交于 2019-12-12 02:12:25

问题


I am getting unexpected results from a sphinxql query from a very large database and a very complex configuration file. I'm stumped trying to figure out what i'd be getting these results. Is there anyway to return the result and simultaneously find the actual indexed data it found? I'm trying to get some insight/clue into what part of this complex configuration file to look into as line by line is e near impossibility.


回答1:


As well as SHOW META, which itself shows much useful info...

SHOW PLAN - if want to diagnose the full-text query parsing itself http://sphinxsearch.com/docs/current.html#sphinxql-show-plan

PACKEDFACTORS() - function can tell you more than you need to know about how ranking calculated http://sphinxsearch.com/docs/current.html#expr-func-packedfactors

SHOW PROFILE - can help with performance issues http://sphinxsearch.com/docs/current.html#sphinxql-show-profile

And DESCRIBE indexname is often useful to see exactly what Fields and Attributes in an index http://sphinxsearch.com/docs/current.html#sphinxql-describe

Finally indextool --dumpheader can be very useful to check the configuration for a specific index. http://sphinxsearch.com/docs/current.html#ref-indextool (actually its other commands can be useful too!)




回答2:


You can fire SHOW META; just after the sphinxql query to get the insights.

http://sphinxsearch.com/docs/current.html#sphinxql-show-meta



来源:https://stackoverflow.com/questions/42570154/how-to-see-what-sphinx-is-actually-finding

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!