EBernhardson has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/336738 )

Change subject: Switc to SiteMatrixInterwikiResolver for AB test
......................................................................

Switc to SiteMatrixInterwikiResolver for AB test

As long as the wiki to name map is populated cirrus will still
try and use the global variables instead of the site matrix version
for figuring out what languages map to what wikiid's. For the sister
search AB test we need the site matrix version to be used.

Change-Id: I797b40332e8d31d2b56319041793a7e238affdc8
---
M wmf-config/InitialiseSettings.php
1 file changed, 34 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/38/336738/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index 875fc64..b0d1c36 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -16972,6 +16972,37 @@
        "nan" => "classic", // e.g. zh_min_nan
 ],
 
+// Mostly the same as wmgCirrusSearchRescoreProfile, but
+// nothing can use wsum_inclinks_pv
+'wmgCirrusSearchInterwikiRescoreProfile' => [
+       'default' => 'wsum_inclinks',
+       'commonswiki' => 'classic_noboostlinks',
+       // Uses the lang tag, list of spaceless languages
+       // (see 
https://www.mediawiki.org/wiki/User:TJones_(WMF)/Notes/Spaceless_Writing_Systems_and_Wiki-Projects)
+       "bo" => "classic",
+       "dz" => "classic",
+       "gan" => "classic",
+       "ja" => "classic",
+       "km" => "classic",
+       "lo" => "classic",
+       "my" => "classic",
+       "th" => "classic",
+       "wuu" => "classic",
+       "zh" => "classic",
+       "zh-classical" => "classic", // should be deprecated in favor of lzh
+       "lzh" => "classic", // zh-classical
+       "zh-yue" => "classic", // should be deprecated in favor of yue
+       "yue" => "classic", // zh_yue
+       // This list below are languages that may use use mixed scripts
+       "bug" => "classic",
+       "cdo" => "classic",
+       "cr" => "classic",
+       "hak" => "classic",
+       "jv" => "classic",
+       "zh-min-nan" => "classic", // needs to support deprecated language code 
(e.g. zh_min_nanwikisource)
+       "nan" => "classic", // e.g. zh_min_nan
+],
+
 'wmgCirrusSearchFullTextQueryBuilderProfile' => [
        'default' => 'perfield_builder',
        // Uses the lang tag, list of spaceless languages
@@ -17253,6 +17284,9 @@
                                // Enable for all buckets
                                'wgCirrusSearchNewCrossProjectPage' => true,
                                'wgCirrusSearchNumCrossProjectSearchResults' => 
1,
+                               // Disables the CirrusConfigInterwikiResolver, 
allowing
+                               // SiteMatrixInterwikiResolver to take over.
+                               'wgCirrusSearchWikiToNameMap' => [],
                        ],
                        'buckets' => [
                                // control, we explicitly hide the side bar

-- 
To view, visit https://gerrit.wikimedia.org/r/336738
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I797b40332e8d31d2b56319041793a7e238affdc8
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <ebernhard...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to