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

Change subject: Disable leading wildcard searches in CirrusSearch
......................................................................


Disable leading wildcard searches in CirrusSearch

This is already the status quo for CirrusSearch. A new patch to cirrus,
I0382e9c7, makes this a configurable option defaulted to on.  We need to set it
back to off before that gets deployed to the cluster.

Bug: T91666
Change-Id: I0d95a93c53966cd70ed87cda560b9aaa547e6cf5
---
M wmf-config/CirrusSearch-common.php
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Manybubbles: Looks good to me, but someone else must approve
  EBernhardson: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/wmf-config/CirrusSearch-common.php 
b/wmf-config/CirrusSearch-common.php
index a42126c..21ab1a1 100644
--- a/wmf-config/CirrusSearch-common.php
+++ b/wmf-config/CirrusSearch-common.php
@@ -23,6 +23,9 @@
                $wgJobTypeConf['default'];
 }
 
+# Turn off leading wildcard matches, they are a very slow and inefficient query
+$wgCirrusSearchAllowLeadingWildcard = false;
+
 # Turn off the more accurate but slower search mode.  It is most helpful when 
you
 # have many small shards.  We don't do that in production and we could use the 
speed.
 $wgCirrusSearchMoreAccurateScoringMode = false;

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I0d95a93c53966cd70ed87cda560b9aaa547e6cf5
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <ebernhard...@wikimedia.org>
Gerrit-Reviewer: EBernhardson <ebernhard...@wikimedia.org>
Gerrit-Reviewer: Manybubbles <never...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to