[Mediawiki-l] mediawiki 1.4 & 1.5rc4, substring search, how?
Klein.Thomas at eae.com
Klein.Thomas at eae.com
Fri Sep 23 12:59:38 UTC 2005
Thank you for Maurice Joseph, Wolfgang and Andrew.
I have change the SearchMySQL4.php with follow line:
Include next function with plus and star:
function legalSearchChars() {
return "A-Za-z_'0-9\\x80-\\xFF\\-+*";
}
And delete the line
# if( $this->strictMatching && ($terms[1] == '') ) {
# $terms[1] = '+';
# }
in the function function parseQuery( $filteredText, $fulltext )
Now the search function have the same syntax of MySQL.
Also, see http://dev.mysql.com/doc/mysql/en/fulltext-boolean.html for
details
about full text sql queries in MySQL.
The better way, i write a new class with this changes and its coming soon
in this mailling-list.
Mit freundlichen Grüssen / Kind regards
i.A. Thomas Klein
OPS Koordination / OPS coordination
EAE software GmbH
Kornkamp 8
22926 Ahrensburg/Germany
Tel : +49 4102/480-513
Fax: +49 4102/480-561
e-mail: mailto:klein.thomas at eae.com
http://www.eae.com/
More information about the MediaWiki-l
mailing list