Skip to content

Commit

Permalink
mediawiki: fix CirrusSearch tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefishy committed Aug 2, 2022
1 parent f1c9bbf commit 8a45308
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 7 additions & 0 deletions cookbooks/mediawiki/templates/default/LocalSettings.php.erb
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,13 @@ $wgForceUIMsgAsContentMsg = array( 'mainpage-url', 'mapfeatures-url', 'contribut
<%= "require_once('#{file}');" %>
<% end -%>

<% if @name == "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 -%>

<% if not(@mediawiki[:private_accounts]) and not(@mediawiki[:private_site]) -%>
# require user confirmation for certain actions
$wgGroupPermissions['user']['move'] = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@
wfLoadExtension( 'CirrusSearch' );
$wgDisableSearchUpdate = false;
$wgSearchType = 'CirrusSearch';

# 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 ));

0 comments on commit 8a45308

Please sign in to comment.