* (bug 15027) Internet domain names and IP addresses can now be indexed and searched...
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 19 Dec 2008 01:50:07 +0000 (01:50 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 19 Dec 2008 01:50:07 +0000 (01:50 +0000)
commit920eb84f1fe03f4614d4ff998dc9321432822cd9
tree7677a2e6eb9c6f403766c245d071631a22955976
parentb916a7b95087adae57632384418bb641e541e98c
* (bug 15027) Internet domain names and IP addresses can now be indexed and searched sensibly with the default MySQL search backend.

Previously things like "192.168.1.1" couldn't be searched very cleanly in the MySQL backend for two reasons:
* First, the periods were stripped out. This resulted in it being broken into multiple short words: "192 168 1 1", leading at best to false positives and general weirdness.
* Second, for IP addresses these were shorter than the default minimum word length of 4 and thus didn't even get indexed!

The addition of padding for short words let them at least get indexed, but they still didn't turn up cleanly due to the word split. Now allowing periods through to the indexed text, and encoding periods that appear within a compound word so they get caught more cleanly.

Also made a tweak so highlighting works a bit better on word boundaries -- eg "192.168.1.1" no longer hits a highlight match for "192.168.1.100". However it's still not 100% handling some cases with the periods. Sigh.
RELEASE-NOTES
includes/SearchEngine.php
includes/SearchMySQL.php
languages/Language.php