Revision history [back]
Turns out that MySQL can be tuned to do a FULLTEXT
search on smaller than 4 characters.
Here are the steps:
- Edit the mysql config file (mine was
/etc/my.cnf
)
In the [mysqld] section, add the line:
ft_min_word_len=3
Restart mysql server and rebuild the FULLTEXT
index on the
answer, question and tags tables:
REPAIR TABLE answer QUICK;
REPAIR TABLE question QUICK;
REPAIR TABLE tag QUICK;
At this point, the search will return 3 letter words.
Turns out that MySQL can be tuned to do a FULLTEXT search on smaller than 4 characters.
Here are the steps:FULLTEXT
- Edit the mysql config file (mine was
/etc/my.cnf
)
In the [mysqld] section, add the line:
ft_min_word_len=3
Rebuild
FULLTEXT
At this point, the search will return 3 letter words.
Turns out that MySQL can be tuned to do a FULLTEXT search on smaller than 4 characters. Here are the steps:
- Edit the mysql config file (mine was
/etc/my.cnf
)
In the [mysqld] section, add the line:
ft_min_word_len=3ft_min_word_len=3
REPAIR TABLE answer QUICK;
REPAIR TABLE answer QUICK;
REPAIR TABLE question QUICK;
REPAIR TABLE tag QUICK;
At this point, the search will return 3 letter words.