From 1abbd2de6d84e86f2ebc75e99bfc0afaf6262520 Mon Sep 17 00:00:00 2001 From: Sagar Deshmukh Date: Wed, 11 Nov 2020 15:52:02 +0530 Subject: [PATCH] PLANET-5055 Pinned the ElasticPress Search algorithm to v3.4 --- src/MasterSite.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/MasterSite.php b/src/MasterSite.php index 01408d5a34..c96188c1a4 100644 --- a/src/MasterSite.php +++ b/src/MasterSite.php @@ -195,6 +195,9 @@ function ( $block_content, $block ) { add_action( 'admin_notices', [ $this, 'show_dashboard_notice' ] ); add_action( 'wp_ajax_dismiss_dashboard_notice', [ $this, 'dismiss_dashboard_notice' ] ); add_filter( 'timber/twig', [ $this, 'p4_optimize_img_url' ] ); + + // Pin the ElasticPress to v3.4 search algorithm. + simple_value_filter( 'ep_search_algorithm_version', '3.4' ); } /**