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”,但是为什么搜索不到

解决方案 »

  1.   

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

  2.   

    http://dev.mysql.com/doc/refman/5.5/en/fulltext-boolean.htmlThe 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.