Sphinx Search Index

ε祈祈猫儿з 提交于 2019-12-06 16:04:54

Please double check your question. You provided configuration for index called mrc but indexer output reads member_region_cities but I believe it's just shortened name.

  1. Please make sure you run indexer with --rotate option if searchd is up and running.

  2. You may check number of documents id the index using

    ./indextool --dumpheader /usr/local/var/data/mrc.sph | grep total-documents

  3. Please make sure you are connecting to the Sphinx server, not to MySQL usually it is running on port 9306

    mysql -h 127.0.0.1 -P 9306

Hope this helps

I found my problem, I wasn't selecting any fields. I had all of my columns configured as attributes.

I fixed this by dropping this line - sql_attr_uint = mrc_id

For future reference, if you need an index without fields you can set a dummy field e.g. add - 'a' as dummy - to the select query.

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