+ -
当前位置:首页 → 问答吧 → mysql中fulltext的通配符不起作用

mysql中fulltext的通配符不起作用

时间:2011-12-12

来源:互联网

SELECT post_id, post_date, post_title, post_excerpt, post_status, term_name
FROM blog_posts
WHERE MATCH (
post_title
)
AGAINST (
'*com*'
)
LIMIT 0 , 30

这是我的语句,我的表中有个元祖的post_title字段是“computer networking”,但是为什么搜索不到

作者: qwrqwreqerqrw   发布时间: 2011-12-12

好像是最小搜索长度的问题

作者: imbigsnake1   发布时间: 2011-12-12

mysql配置里面有一个可以设置全文检索 最小搜索长度的参数

作者: imbigsnake1   发布时间: 2011-12-12

全文检索的最小分辨单位是“单词”

作者: xuzuning   发布时间: 2011-12-12

http://dev.mysql.com/doc/refman/5.5/en/fulltext-boolean.html

The asterisk serves as the truncation (or wildcard) operator. Unlike the other operators, it should be appended to the word to be affected. Words match if they begin with the word preceding the * operator.

作者: helloyou0   发布时间: 2011-12-12

相关阅读 更多