Skip to content

Commit f0172c3

Browse files
committed
ACP2E-989: "Minimum should match" with enquoted search term causes incorrect search query generation
1 parent bd49195 commit f0172c3

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Elasticsearch/SearchAdapter/Query/Builder

1 file changed

+1
-1
lines changed

app/code/Magento/Elasticsearch/SearchAdapter/Query/Builder/MatchQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function build(array $selectQuery, RequestQueryInterface $requestQuery, $
120120
$fields = [];
121121
$fields[$resolvedField] = [
122122
'query' => $transformedValue,
123-
'boost' => $requestQueryBoost + $match['boost'] ?? 1,
123+
'boost' => $requestQueryBoost + ($match['boost'] ?? 1),
124124
];
125125

126126
if (isset($match['analyzer'])) {

0 commit comments

Comments
 (0)