jenkins-bot has submitted this change and it was merged.

Change subject: Initial cirrus configuration for language detection of search 
terms
......................................................................


Initial cirrus configuration for language detection of search terms

Sets up the configuration, but does not turn on by default,
language detection and fallback search to detected languages.

Change-Id: I951d43fe395d64b360d1bed1f701ba479f8912f1
---
M wmf-config/CirrusSearch-common.php
1 file changed, 25 insertions(+), 0 deletions(-)

Approvals:
  EBernhardson: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/wmf-config/CirrusSearch-common.php 
b/wmf-config/CirrusSearch-common.php
index 2357380..44f2ddb 100644
--- a/wmf-config/CirrusSearch-common.php
+++ b/wmf-config/CirrusSearch-common.php
@@ -114,6 +114,31 @@
        $wgCirrusSearchExtraIndexes[ NS_FILE ] = array( 'commonswiki_file' );
 }
 
+// Configuration for initial test deployment of inline interwiki search via
+// language detection on the search terms. With EnableAltLanguage set to false
+// this is only available with a special query string (cirrusAltLanguage=yes)
+$wgCirrusSearchEnableAltLanguage = false;
+$wgCirrusSearchInterwikiProv = 'iwsw1';
+$wgCirrusSearchLanguageToWikiMap = array(
+       'en' => 'en',
+       'es' => 'es',
+       'de' => 'de',
+       'pt' => 'pt',
+       'zh-cn' => 'zh',
+       'zh-tw' => 'zh',
+       'ar' => 'ar',
+       'ru' => 'ru',
+);
+
+$wgCirrusSearchWikiToNameMap = array(
+       'ar' => 'arwiki',
+       'de' => 'dewiki',
+       'en' => 'enwiki',
+       'es' => 'eswiki',
+       'pt' => 'ptwiki',
+       'ru' => 'ruwiki',
+       'zh' => 'zhwiki',
+);
 # Load per realm specific configuration, either:
 # - CirrusSearch-labs.php
 # - CirrusSearch-production.php

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I951d43fe395d64b360d1bed1f701ba479f8912f1
Gerrit-PatchSet: 2
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to