Last modified: 2010-05-15 15:41:10 UTC
Boolean full-text searches in MySQL can use asterix as a wild card. Unfortunately it does not work in MediaWiki. SearchMySQL4.php has to be changed.
In the file SearchMySQL4.php I added the lines function legalSearchChars() { return "A-Za-z_'0-9\\x80-\\xFF\\-+~<>*"; } before line function parseQuery( $filteredText, $fulltext ) { And until now it seems to work fine. I have corrected today And I have not yet found any side effect. Explanation: Before calling parseQuery, the class SearchEngine call function filter that uses legalSearchChars list to filter out the input text but the legalSearchChars function in SearchEngine have only the minus as wildcard, so the $filterdText recevived by parseQuery has no more the '*' and so cannot pass it to MySql. Adding the lines above create override the function for the class SearchMySQL4 that is build over class SearchEngine. Note: function parseQuery correctly specify to use legalSearchChars from SearchEngine to define legal characters thzt are not wildcard!
*** This bug has been marked as a duplicate of bug 4021 ***