The minimum and maximum lengths of words to be indexed are determined by the system variables ft_min_word_len
and ft_max_word_len
. The minimum default value is 4 . This is why it does not work with characters 3 .
You need to change its value and rebuild the FULLTEXT
indices. If you want the three-character words to be searchable, you can set the ft_min_word_len
variable by changing its value in the configuration file. Or, if you have superuser privileges, you can set this environment variable with:
SET ft_min_word_len=3
Get more information here: Fine-tuning MySQL full-text search
user319198
source share