EBernhardson has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/372154 )
Change subject: Apply token count limits to phrase queries on all wikis
......................................................................
Apply token count limits to phrase queries on all wikis
Bug: T172653
Change-Id: Icd35de974f6fa3ab73820ba8af3c101aab62ce70
---
M wmf-config/CirrusSearch-common.php
M wmf-config/InitialiseSettings.php
2 files changed, 3 insertions(+), 9 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/54/372154/1
diff --git a/wmf-config/CirrusSearch-common.php
b/wmf-config/CirrusSearch-common.php
index 6215815..bc38665 100644
--- a/wmf-config/CirrusSearch-common.php
+++ b/wmf-config/CirrusSearch-common.php
@@ -86,13 +86,8 @@
'super_detect_noop' => true,
'id_hash_mod_filter' => true,
'documentVersion' => true,
+ 'token_count_router' => true,
];
-
-# Investigate T169498, only activate token_count_router for spaceless
languages with sane
-# analysis chain and the perfield_builder ft builder.
-if ( $wgLanguageCode === 'zh' ) {
- $wgCirrusSearchWikimediaExtraPlugin['token_count_router'] = true;
-}
# Enable the "experimental" highlighter on all wikis
$wgCirrusSearchUseExperimentalHighlighter = true;
diff --git a/wmf-config/InitialiseSettings.php
b/wmf-config/InitialiseSettings.php
index 6664eee..7d0085b 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -18393,12 +18393,11 @@
],
// @} end of wmgCirrusSearchRecycleCompletionSuggesterIndex
-// Disable phrase rescore on zh queries with too many tokens.
+// Disable phrase rescore on queries with too many tokens.
// Bandaid for T169498, should be removed when a proper
// fix is determined
'wmgCirrusSearchMaxPhraseTokens' => [
- 'default' => 'null',
- 'zh' => 10,
+ 'default' => 10,
],
// Configure ICU Folding, 'default': controlled by cirrus
--
To view, visit https://gerrit.wikimedia.org/r/372154
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icd35de974f6fa3ab73820ba8af3c101aab62ce70
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits