Log in

View Full Version : 3 word search?


v123shine
09-11-2012, 03:50 PM
Hello...

How to make 3 word search in vb 3.8.x ??

I following this step, but still can't work.

STEP 1
Search Type -> Change "Remove Fulltext Indexes" to "YES"

STEP 2
Vbulletin Options -> Message Searching Options -> Search Index Minimum Word Length put 3 into the text field

STEP 3
Edit MySQL's my.cnf and add below code:

[mysqld]
ft_min_word_len=3

[myisamchk]
ft_min_word_len=3
STEP 4
Maintenance -> Update Counter -> Rebuild Search Index

And the result, i still cant search 3 letter words in Vbulletin :(

Can someone help me, please!

Thank you

kh99
09-13-2012, 11:59 PM
I tried what you did and it does seem to work, except that in the file includes/searchwords.php there's a list of common words that won't be included in the search index, many of them 3 letter words. If you want to be able to search for those words you'd have to remove them from that array and rebuild your search index. There is a hook 'search_stopwords' right under where the array is defined, so you could make a plugin there and do whatever you want to the $badwords array.