我用MySQL测试全文本搜索时,感觉没有作用,搜不出来结果。MySQL版本是5.5,表使用的Myisam搜索引擎,字段是vachar类型。
查询语句:select id,content from article where match(content) against("this")
结果是0条。是哪里没写对吗?还是需要额外配置什么
我用MySQL测试全文本搜索时,感觉没有作用,搜不出来结果。MySQL版本是5.5,表使用的Myisam搜索引擎,字段是vachar类型。
查询语句:select id,content from article where match(content) against("this")
结果是0条。是哪里没写对吗?还是需要额外配置什么
4 回答1.1k 阅读✓ 已解决
8 回答1.2k 阅读
3 回答1k 阅读✓ 已解决
2 回答1.7k 阅读
1 回答835 阅读✓ 已解决
2 回答1.1k 阅读
2 回答1k 阅读
找到原因了,this是stopword列表里的,mysql默认是不索引这些单词的,所以搜不到。