Three Letter Searches

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
SRRAE
Posts: 4
Joined: Wed Jul 08, 2015 10:41 am

Three Letter Searches

Post by SRRAE »

Hi,

I was wondering how to get 3 letter searches working?

I have added the line ft_min_word_len = 3 to the myconf.ini (I think it was) and MyPHP (Ver 5.6) is reporting min word length is set to 3, however when searching for a three letter word on PHPMYFAQ (ver 2.8.24), both the smart/instant search and advanced search doesn't find the correct articles for three letter words.

For example we have 2 articles (out of about 100) which has USB in the question, answer and as a keyword, however searching for USB doesn't find these articles. If I search for USB, it does find the 2 articles. I don't know if this due to the word length being increased to 4 characters by the comma.

Thanks for any help.

Stuart.
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Three Letter Searches

Post by Thorsten »

Hi,

strange behaviour as your changes are correct. You could enable the DEBUG mode in inc/Bootstrap.php and copy&paste the search queries directly in MySQL to do a deeper debugging what's wrong here.

For the instant search even searches with one or two letters should work as we have a fallback to use a LIKE query.

Cheers
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply