【发布时间】:2019-03-09 14:49:49
【问题描述】:
我有一张简单的桌子
id: primary
name: varchar fulltext index
这是我的狮身人面像配置 https://justpaste.it/1okop
索引器对 docinfo 发出警告
Sphinx 2.2.11-id64-release (95ae9a6) 版权所有 (c) 2001-2016, Andrew Aksyonoff 版权所有 (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
使用配置文件'/etc/sphinxsearch/sphinx.conf'...索引索引 'words'... 警告:属性计数为 0:切换到无 docinfo 收集了 10000 个文档,0.1 MB 排序 0.0 Mhits,完成 100.0% 总计 10000 文档,总共 79566 字节 0.065 秒,1210829 字节/秒,152179.20 docs/sec 共 3 次读取,0.000 秒,94.6 kb/call avg,0.0 msec/call avg 总共 9 次写入,0.000 秒,47.5 kb/调用平均值,0.0 毫秒/调用平均值
但是这里Sphinx: WARNING: Attribute count is 0: switching to none docinfo说没什么大不了的。
好的,开始服务并搜索部分单词:
SELECT *
FROM test_words
where match (name) AGAINST ('lema')
No rows.
Tha same as
SELECT *
FROM test_words
where match (name) AGAINST ('*lema*')
没有行。
同时有查询结果
SELECT *
FROM `test_words`
where position('lema' in name)>0
据我所知-Sphinx 不是按单词的一部分搜索的。 为什么以及如何解决?
而且 - 如果我取消注释
min_infix_len = 3
infix_fields = name
我明白了
WARNING: index 'words': prefix_fields and infix_fields has no effect with dict=keywords, ignoring
还有一个 - 显示引擎; 没有显示 Sphinx 引擎,现在正常吗? mysql服务已重启。
所有的 sql 查询都是通过登录 localhost:3312 的管理员运行的
【问题讨论】:
标签: sphinx