From: Tigerfell <43786020+Tigerfell@users.noreply.github.com> Date: Sun, 27 Oct 2019 16:27:40 +0000 (+0100) Subject: Search rank for new namespace X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/a5a3b8b5d676e4e7c46f5124325d2ca799bee76f Search rank for new namespace --- 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 12fe10e5b..7f69d41bb 100644 --- a/cookbooks/mediawiki/templates/default/mw-ext-CirrusSearch.inc.php.erb +++ b/cookbooks/mediawiki/templates/default/mw-ext-CirrusSearch.inc.php.erb @@ -3,3 +3,10 @@ require_once($IP .'/extensions/CirrusSearch/CirrusSearch.php'); $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 -%>