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

Change subject: Fix a misnamed settings
......................................................................


Fix a misnamed settings

At some point Elasticsearch switched the default merge strategy and our
old setting no longer did anything.  This new one is the correct setting.

Change-Id: I2329f2263b39a7a1b34be72396f15d55f1dc00a3
---
M maintenance/updateOneSearchIndexConfig.php
1 file changed, 3 insertions(+), 3 deletions(-)

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



diff --git a/maintenance/updateOneSearchIndexConfig.php 
b/maintenance/updateOneSearchIndexConfig.php
index d56dbda..9dda321 100644
--- a/maintenance/updateOneSearchIndexConfig.php
+++ b/maintenance/updateOneSearchIndexConfig.php
@@ -690,8 +690,8 @@
 
                $settings = $this->getIndex()->getSettings();
                $settings->set( array(
-                       'refresh_interval' => -1,           // This is supposed 
to help with bulk index io load.
-                       'merge.policy.merge_factor' => 20,  // This is supposed 
to help with bulk index io load.
+                       'refresh_interval' => -1,                // This is 
supposed to help with bulk index io load.
+                       'merge.policy.segments_per_tier' => 20,  // This is 
supposed to help with bulk index io load.
                ) );
 
                if ( $this->reindexProcesses > 1 ) {
@@ -731,7 +731,7 @@
                // Revert settings changed just for reindexing
                $settings->set( array(
                        'refresh_interval' => $wgCirrusSearchRefreshInterval . 
's',
-                       'merge.policy.merge_factor' => 10,
+                       'merge.policy.segments_per_tier' => 10,
                ) );
        }
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I2329f2263b39a7a1b34be72396f15d55f1dc00a3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Manybubbles <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: Manybubbles <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to