OpenWetWare:Administration/Customization: Difference between revisions
From OpenWetWare
Jump to navigationJump to search
(New page: ==Chat== *Special:Chat *powered by [http://www.phpfreechat.net/ phpFreeChat]) |
No edit summary |
||
Line 2: | Line 2: | ||
*[[Special:Chat]] | *[[Special:Chat]] | ||
*powered by [http://www.phpfreechat.net/ phpFreeChat] | *powered by [http://www.phpfreechat.net/ phpFreeChat] | ||
==Search== | |||
===MySQL full-text search (3 character words)=== | |||
*[[OpenWetWare:Searching_preferences|Searching preferences]] | |||
*[http://meta.wikimedia.org/wiki/Help:Short_words_in_searches Short words in searches] | |||
The default minimum value is four characters. The default maximum depends on your version of MySQL. If you change either value, you must rebuild your FULLTEXT indexes. | |||
*Procedure: | |||
*#shutdown wiki (apache then mysql) | |||
*#start mysql, rebuild text indexes (might take a long time if database is big) | |||
*#start wiki (mysql then apache) | |||
*#need to flush cache after doing repair table - drop and create index quicker? | |||
===Namespaces to search by default=== | |||
In LocalSettings.php: | |||
$wgNamespacesToBeSearchedDefault = array( -1 => 0, NS_MAIN => 1, NS_USER => 0, | |||
NS_USER_TALK => 0, NS_PROJECT_TALK => 0, NS_IMAGE_TALK => 0, | |||
NS_IMAGE_TALK => 0, NS_TEMPLATE_TALK => 0, NS_HELP_TALK => 0, | |||
NS_CATEGORY_TALK => 0, | |||
100 => 1, 102 => 1 ); | |||
[http://meta.wikimedia.org/wiki/Help:Namespace#List_of_namespaces List of MW namespaces] |
Revision as of 14:46, 10 March 2008
Chat
- Special:Chat
- powered by phpFreeChat
Search
MySQL full-text search (3 character words)
The default minimum value is four characters. The default maximum depends on your version of MySQL. If you change either value, you must rebuild your FULLTEXT indexes.
- Procedure:
- shutdown wiki (apache then mysql)
- start mysql, rebuild text indexes (might take a long time if database is big)
- start wiki (mysql then apache)
- need to flush cache after doing repair table - drop and create index quicker?
Namespaces to search by default
In LocalSettings.php:
$wgNamespacesToBeSearchedDefault = array( -1 => 0, NS_MAIN => 1, NS_USER => 0, NS_USER_TALK => 0, NS_PROJECT_TALK => 0, NS_IMAGE_TALK => 0, NS_IMAGE_TALK => 0, NS_TEMPLATE_TALK => 0, NS_HELP_TALK => 0, NS_CATEGORY_TALK => 0, 100 => 1, 102 => 1 );