In my website I have implemented search feature using full-text search.
It works fine usually but not sometimes like it gives results when I search with keyword “ship” but not “shi”
But it should return. Please help me why this happening.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The minimum and maximum lengths of words to be indexed are defined by the
ft_min_word_lenandft_max_word_lensystem variables. The default minimum value is 4 characters. That is why it’s not working with 3 characters.You need to change its value, and rebuild your
FULLTEXTindexes. If you want three-character words to be searchable, you can set theft_min_word_lenvariable by changing its value in the configuration file. Or, if you have super user permissions you can set this environment variable with:Get more details here: Fine-Tuning MySQL Full-Text Search