My search-mecanism doesn´t seem to work, when I search for 3 characters or less (ex. 'FBI')? What's the problem and how do I fix it? It works fine i Wikipedia.
We had to change the MySQL configuration:
set ft_min_word_len=3 in /etc/my.cnf restart (or reload?) mysqld
We have:
MediaWiki: 1.7.1 MySQL: 5.0.68
If you have newer software, it might be different for you.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Haim (Howard) Roman Computer Center, Jerusalem College of Technology Phone: 052-8-592-599 (6022 from within Machon Lev)
On Tue, May 26, 2009 at 12:49, Claus Juhl Knudsen earkivar@gmail.com wrote:
My search-mecanism doesn´t seem to work, when I search for 3 characters or less (ex. 'FBI')? What's the problem and how do I fix it? It works fine i Wikipedia.
-- Claus Juhl Knudsen eArkivar Silkeborg Lokalhistoriske Arkiv www.silkeborgarkiv.dk Tlf.: 87 22 19 27
My search-mecanism doesn´t seem to work, when I search for 3 characters or less (ex. 'FBI')? What's the problem and how do I fix it? It works fine i Wikipedia.
A google search resulted in the following blog entry, which looks correct:
http://leefw.wordpress.com/2008/03/05/getting-past-default-searching-limitat ions-in-mediawiki-and-mysql/
Here is the entry from the MediaWiki FAQ:
http://www.mediawiki.org/wiki/Manual:FAQ#.E2.80.A6is_a_search_for_a_short_ke yword_giving_no_hits.3F
It isn't as informative as the blog entry, but pretty much says the same thing.
V/r,
Ryan Lane
El 5/26/09 2:49 AM, Claus Juhl Knudsen escribió:
My search-mecanism doesn´t seem to work, when I search for 3 characters or less (ex. 'FBI')? What's the problem and how do I fix it? It works fine i Wikipedia.
Other posts have linked to general directions on tweaking the MySQL search index length limit. You can also upgrade to MediaWiki 1.14 or later, which works around the MySQL server's limit setting internally without any configuration required.
After either method, you need to rebuild the search index (maintenance/rebuildtextindex.php) or the new matches won't start working until you edit them.
-- brion
2009/5/26 Brion Vibber brion@wikimedia.org:
Other posts have linked to general directions on tweaking the MySQL search index length limit. You can also upgrade to MediaWiki 1.14 or later, which works around the MySQL server's limit setting internally without any configuration required.
Win!
(mind you, tweaking MySQL settings in 1.11 worked very nicely for the work wiki ... which is of course full to the brim with TLAs.)
- d.
El 5/26/09 12:08 PM, David Gerard escribió:
2009/5/26 Brion Vibberbrion@wikimedia.org:
Other posts have linked to general directions on tweaking the MySQL search index length limit. You can also upgrade to MediaWiki 1.14 or later, which works around the MySQL server's limit setting internally without any configuration required.
Win!
(mind you, tweaking MySQL settings in 1.11 worked very nicely for the work wiki ... which is of course full to the brim with TLAs.)
Yeah, you'd think MySQL wouldn't block "SQL" from searches. ;)
-- brion
Hi all.
Thank you for the input. I'm about to upgrade to 1.14 anyway, but didn't know that would solve the problem. Thanks.
-- Claus
2009/5/26 Brion Vibber brion@wikimedia.org
El 5/26/09 12:08 PM, David Gerard escribió:
2009/5/26 Brion Vibberbrion@wikimedia.org:
Other posts have linked to general directions on tweaking the MySQL search index length limit. You can also upgrade to MediaWiki 1.14 or later, which works around the MySQL server's limit setting internally without any configuration required.
Win!
(mind you, tweaking MySQL settings in 1.11 worked very nicely for the work wiki ... which is of course full to the brim with TLAs.)
Yeah, you'd think MySQL wouldn't block "SQL" from searches. ;)
-- brion
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Bummer, it seems Wikipedia has abandoned the built-in search, and instead uses extensions. Meaning searching for more than two Chinese characters will stay broken https://bugzilla.wikimedia.org/show_bug.cgi?id=8445
El 5/27/09 1:55 PM, jidanni@jidanni.org escribió:
Bummer, it seems Wikipedia has abandoned the built-in search, and instead uses extensions.
...since the year 2005...
Meaning searching for more than two Chinese characters will stay broken https://bugzilla.wikimedia.org/show_bug.cgi?id=8445
Until it's fixed, anyway. :) It's been broken the same way for several years, so this isn't some new exciting bug.
-- brion
mediawiki-l@lists.wikimedia.org