SHOW VARIABLES LIKE '%ft_min_word_len%' 最小搜索词长度限制
最好用myisam 引擎,阿里云暂不支持
REPAIR TABLE `post` QUICK 快速重建索引(全局索引重新设置 min_word后,需要重建索引)
搜索语句
select * from bbtu2.post where match(title_index) against('罗曼蒂克')
拼音
<dependency>
<groupId>com.github.stuxuhai</groupId>
<artifactId>jpinyin</artifactId>
<version>1.0</version>
</dependency>
分词
<!-- https://mvnrepository.com/artifact/com.janeluo/ikanalyzer -->
<dependency>
<groupId>com.janeluo</groupId>
<artifactId>ikanalyzer</artifactId>
<version>2012_u6</version>
</dependency>