【发布时间】:2014-04-18 08:17:48
【问题描述】:
更新:它现在正在工作。
解决方案:我关闭了 sphinxsearch 服务,删除了我的索引文件,重建了索引,启动了服务,现在我得到了结果。
我一直在试图弄清楚为什么我无法从 Sphinx 搜索和获取结果。
我已经完成了一个索引(成功)
total 16261878 docs, 26084076839 bytes
total 3661.072 sec, 7124709 bytes/sec, 4441.83 docs/sec
total 131 reads, 53.673 sec, 106140.4 kb/call avg, 409.7 msec/call avg
total 25714 writes, 43.170 sec, 1231.8 kb/call avg, 1.6 msec/call avg
但是当我尝试执行搜索时select * from skoovy_prd_post search where match('five guys') limit 10
mysql -P 9306 -h127.0.0.1
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.7
MySQL [(none)]> select * from skoovy_prd_post_search where match('five guys') limit 10;
我收到:
Empty set (0.00 sec)
但是对“五个人”执行一个命中列表,我肯定有结果:
indextool --dumphitlist skoovy_prd_post_search 'five guys' |more
Sphinx 2.0.4-release (r3135)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/etc/sphinxsearch/sphinx.conf'...
dumping hitlist for index 'skoovy_prd_post_search' keyword 'five guys'...
keyword=five guys, tok=five, wordid=1018350795
doc=3327, hit=0x01000001
doc=3327, hit=0x03000004
doc=3327, hit=0x23000006
doc=3327, hit=0x23000011
doc=3327, hit=0x24000006
doc=3327, hit=0x24000010
doc=3327, hit=0x25000006
doc=3327, hit=0x25000011
doc=3327, hit=0x26000006
doc=3327, hit=0x26000010
doc=43112, hit=0x01000001
doc=43112, hit=0x03000004
doc=43112, hit=0x23000006
doc=43112, hit=0x23000011
有人有什么想法、建议或知道这是为什么吗?
【问题讨论】: