]> git.openstreetmap.org Git - chef.git/commitdiff
Search rank for new namespace
authorTigerfell <43786020+Tigerfell@users.noreply.github.com>
Sun, 27 Oct 2019 16:27:40 +0000 (17:27 +0100)
committerGitHub <noreply@github.com>
Sun, 27 Oct 2019 16:27:40 +0000 (17:27 +0100)
cookbooks/mediawiki/templates/default/mw-ext-CirrusSearch.inc.php.erb

index 12fe10e5bab7e334ce38e209a1ee0501bdd6c89c..7f69d41bb2fb93d41d6dec92cefee8c29b7a7f14 100644 (file)
@@ -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 -%>