* (bug 5477) Searches for words less than 4 characters now work without
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 25 Nov 2008 02:39:06 +0000 (02:39 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 25 Nov 2008 02:39:06 +0000 (02:39 +0000)
commit7ebf0e431b0689b220d42b258e5ced37323bd564
treed511fc5e3ceffc4affe313e642364198fad82597
parent21f3f43f4800da9761ca9fa5bb76610a5a8e49e5
* (bug 5477) Searches for words less than 4 characters now work without
  requiring customization of MySQL server settings

Short words are padded so they now get indexed. Yay!

Adapted part of Werdna's patch, with some additional cleanup:
* Using 'U00' to pad instead of 'SMALL' to reduce false positives (eg search for "small*" could match "Smallville" and "SMALLc")
* Checking server's ft_min_word_len variable to see if we need to do anything. This preserves index compatibility with existing installations which have customized their index length.
* Some further cleanup on redundant code -- just toss everything through lc() and be done with it :D
* Cleaned out some more evals in zh and yue classes :P
* Fixed yue class to call the parent adjustor properly
RELEASE-NOTES
languages/Language.php
languages/classes/LanguageYue.php
languages/classes/LanguageZh.php