MySQL Fulltext Min Word Length
Could have sworn that I’ve posted about this before, but it seems to be missing. To change the minimum word length that MySQL uses for a fulltext index search, just set a configuration and restart.
$ vi /etc/my.cnf
Then add in:
ft_min_word_len=3
Or whatever minimum word length you’re looking for. Then, restart:
/etc/init.d/mysqld restart
Then rebuild your fulltext index.
ALTER TABLE `mytable` DROP INDEX `myfulltext_index`
ALTER TABLE `mytable` ADD FULLTEXT `fulltext` (
`myfieldname` ,
`anotherfieldname` ,
)