diff --git a/search/includes/classes/class-health.php b/search/includes/classes/class-health.php index 1b60b06051..07e67ca9db 100644 --- a/search/includes/classes/class-health.php +++ b/search/includes/classes/class-health.php @@ -1128,7 +1128,7 @@ public function heal_index_settings_for_indexable( \ElasticPress\Indexable $inde $desired_settings_to_heal = self::limit_index_settings_to_keys( $desired_settings, self::INDEX_SETTINGS_HEALTH_AUTO_HEAL_KEYS ); $index_name = $indexable->get_index_name(); if ( method_exists( '\Automattic\VIP\Search\Search', 'should_load_new_ep' ) && \Automattic\VIP\Search\Search::should_load_new_ep() ) { - $result = $this->elasticsearch->update_index_settings( $index_name, $desired_settings_to_heal, true ); + $result = $this->elasticsearch->update_index_settings( $index_name, $desired_settings_to_heal, false ); } else { $result = $indexable->update_index_settings( $desired_settings_to_heal ); } diff --git a/tests/search/includes/classes/test-class-health.php b/tests/search/includes/classes/test-class-health.php index 9f465b536f..0e1d00f9da 100644 --- a/tests/search/includes/classes/test-class-health.php +++ b/tests/search/includes/classes/test-class-health.php @@ -1182,7 +1182,7 @@ public function test_heal_index_settings_for_indexable( $desired_settings, $opti $health->elasticsearch->expects( $this->once() ) ->method( 'update_index_settings' ) - ->with( $index_name, $expected_updated_settings, true ); + ->with( $index_name, $expected_updated_settings, false ); $result = $health->heal_index_settings_for_indexable( $mocked_indexable, $options );