From: Grant Slater Date: Tue, 2 Aug 2022 21:39:01 +0000 (+0300) Subject: mediawiki: tweak namespace search for all sites X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/0d8247a2964b6e1c21df340808a183090cc0ae87 mediawiki: tweak namespace search for all sites --- diff --git a/cookbooks/mediawiki/templates/default/mw-ext-CirrusSearch.inc.php.erb b/cookbooks/mediawiki/templates/default/mw-ext-CirrusSearch.inc.php.erb index 56412467e..8a6ef31ca 100644 --- a/cookbooks/mediawiki/templates/default/mw-ext-CirrusSearch.inc.php.erb +++ b/cookbooks/mediawiki/templates/default/mw-ext-CirrusSearch.inc.php.erb @@ -4,9 +4,7 @@ wfLoadExtension( 'CirrusSearch' ); $wgDisableSearchUpdate = false; $wgSearchType = 'CirrusSearch'; -<% if @mediawiki[:site] == "wiki.openstreetmap.org" -%> # setting the search weight of the main wiki's proposal namespace lower then general talk pages (0.2), but # higher then wiki project namespace (0.1) # Documentation at https://phabricator.wikimedia.org/source/extension-cirrussearch/browse/master/docs/settings.txt$693 $wgCirrusSearchNamespaceWeights = array_merge ( $wgCirrusSearchNamespaceWeights, array ( NS_PROPOSAL => 0.15 )); -<% end -%>