|
|
|
Help:Short words in searches
[edit] Changing minimum and maximum word lengths in MySQL[edit] Option 1From MySQL's docs on Fine-Tuning MySQL Full-Text Search: The minimum and maximum length of words to be indexed is defined by the [mysqld] ft_min_word_len=3 [myisamchk] ft_min_word_len=3 Then restart the server in the appropriate way for your OS and rebuild your
php rebuildtextindex.php
# If you're on MySQL 3.x, this next line must be FALSE: $wgDBmysql4 = $wgEnablePersistentLC = true; You might want to consult Fine-Tuning MySQL Full-Text Search for further reference. [edit] Option 2I could not get the above to work (Windows XP SP2, SQL5.0, PHP5) but found following very simple and effective: 1 Find the my.ini file in the SQL install folder (eg C:\Program Files\MySQL\MySQL Server 5.0) and add in the lines [mysqld] [myisamchk] under [mysql] default-character-set=latin1 in the Client Section 2 Using MySQL Admin stop and restart the service [edit] See also |