From 03877c87cb7c7d878021b610ad4a17a68a6da626 Mon Sep 17 00:00:00 2001 From: Vadym Honcharuk Date: Tue, 30 Jul 2024 12:45:50 +0300 Subject: [PATCH] [Core] Fix #3334, adding support currency condition Handles cases where \Magento\CatalogSearch\Model\Advanced::addFilters applies a 'price' condition with a range and an un-necessary 'currency' parameter. --- .../Search/Request/Query/Filter/QueryBuilder.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/module-elasticsuite-core/Search/Request/Query/Filter/QueryBuilder.php b/src/module-elasticsuite-core/Search/Request/Query/Filter/QueryBuilder.php index e4d1e71e5..b1983a75c 100644 --- a/src/module-elasticsuite-core/Search/Request/Query/Filter/QueryBuilder.php +++ b/src/module-elasticsuite-core/Search/Request/Query/Filter/QueryBuilder.php @@ -52,6 +52,8 @@ class QueryBuilder 'fulltext' => 'queryText', 'match' => 'queryText', 'in_set' => 'values', + // Trick to silently ignore that condition if it slips along with a price range here from advanced search. + 'currency' => 'currency', ]; /**