jenkins-bot has submitted this change and it was merged. Change subject: search: Dependent config for textcat AB test. ......................................................................
search: Dependent config for textcat AB test. Sets up the necessary configuration for the textcat AB test implemented in I95ba0a932. This patch must be deployed before that one. Change-Id: I02a83aa886b3b11b8a42015de78d124c0a8de055 --- M wmf-config/InitialiseSettings.php 1 file changed, 28 insertions(+), 11 deletions(-) Approvals: EBernhardson: Looks good to me, approved jenkins-bot: Verified diff --git a/wmf-config/InitialiseSettings.php b/wmf-config/InitialiseSettings.php index 3a740e1..9f3630b 100644 --- a/wmf-config/InitialiseSettings.php +++ b/wmf-config/InitialiseSettings.php @@ -16456,9 +16456,9 @@ 'wmgCirrusSearchUserTesting' => [ + // Only being utilized on some wiki's, but because this requires a special query parameter + // to trigger it is safe to use everywhere rather than duplicate the config. 'default' => [ - ], - 'enwiki' => [ 'textcat1' => [ // Test only activated via query string trigger 'sampleRate' => 0, @@ -16468,34 +16468,30 @@ 'wgCirrusSearchLanguageDetectors' => [ 'textcat' => 'CirrusSearch\\LanguageDetector\\TextCat', ], - 'wgCirrusSearchTextcatLanguages' => [ - 'en', 'es', 'zh', 'pt', 'ar', 'ru', 'fa', 'ko', - 'bn', 'bg', 'hi', 'el', 'ja', 'ta', 'th', 'he' - ] ], 'buckets' => [ // control bucket. setup threshold and detector but don't turn on the // language query 'a' => [ - 'trigger' => 'textcat1:a', + 'trigger' => 'textcat2:a', 'globals' => [ 'wgCirrusSearchEnableAltLanguage' => false, ], ], // test bucket. try textcat and append results when < 3 results found 'b' => [ - 'trigger' => 'textcat1:b', + 'trigger' => 'textcat2:b', 'globals' => [ 'wgCirrusSearchEnableAltLanguage' => true, - 'wgCirrusSearchInterwikiProv' => 'iwsw6', + 'wgCirrusSearchInterwikiProv' => 'iwsw8', ], ], // test bucket. try accept-language, fallback to textcat 'c' => [ - 'trigger' => 'textcat1:c', + 'trigger' => 'textcat2:c', 'globals' => [ 'wgCirrusSearchEnableAltLanguage' => true, - 'wgCirrusSearchInterwikiProv' => 'iwsw7', + 'wgCirrusSearchInterwikiProv' => 'iwsw9', 'wgCirrusSearchLanguageDetectors' => [ 'accept-lang' => 'CirrusSearch\\LanguageDetector\\HttpAccept', 'textcat' => 'CirrusSearch\\LanguageDetector\\TextCat', @@ -16507,6 +16503,27 @@ ], ], +'wgCirrusSearchTextcatLanguages' => [ + 'default' => [ + 'en', 'es', 'zh', 'pt', 'ar', 'ru', 'fa', 'ko', + 'bn', 'bg', 'hi', 'el', 'ja', 'ta', 'th', 'he' + ], + 'frwiki' => [ + 'fr', 'en', 'ar', 'ru', 'zh', 'th', 'el', 'hy', + 'he', 'ko', + ], + 'eswiki' => [ + 'es', 'en', 'ru', 'zh', 'ar', 'ja', + ], + 'itwiki' => [ + 'it', 'en', 'ru', 'ar', 'zh', 'ja', 'el', 'ko', + ], + 'dewiki' => [ + 'de', 'en', 'zh', 'el', 'ru', 'ar', 'hi', 'th', + 'ko', 'ja', + ], +], + // Enable interwiki search by language detection. The list of language // detected and their corresponding wiki is defined by // wmgCirrusSearchLanguageToWikiMap and wmgCirrusSearchWikiToNameMap -- To view, visit https://gerrit.wikimedia.org/r/294739 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I02a83aa886b3b11b8a42015de78d124c0a8de055 Gerrit-PatchSet: 4 Gerrit-Project: operations/mediawiki-config Gerrit-Branch: master Gerrit-Owner: EBernhardson <ebernhard...@wikimedia.org> Gerrit-Reviewer: EBernhardson <ebernhard...@wikimedia.org> Gerrit-Reviewer: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com> Gerrit-Reviewer: Tjones <tjo...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits