I am trying to perform a search for users based on a full-text search.
SELECT * FROM users WHERE MATCH ( name ) AGAINST ( 'FDR' IN BOOLEAN MODE );
However the query yields no results. I can replace the search value with other strings and yield results.
I have even tried using a null stop word list with no success. The problem seems to with this particular string.
From dev.mysql.com/doc/refman/5.1/en/fulltext-fine-tuning.html
The default minimum value is four characters; the default maximum is version dependent. If you change either value, you must rebuild your FULLTEXT indexes.
The minimum and maximum lengths of words to be indexed are defined by the ft_min_word_len and ft_max_word_len system variables.
Also see Server System Variables
如果这篇文章仍然有效,那么因为MySQL全文索引不会将单词索引<= 3个字符。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.