Skip to content

Commit d79efbd

Browse files
committed
ACP2E-3897: [Mainline] Wrong results in products graphQL query
1 parent a6933f3 commit d79efbd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/code/Magento/CatalogGraphQl/DataProvider/Product/SearchCriteriaBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ private function updateMatchTypeRequestConfig(string $requestName, array $partia
117117
foreach ($query['match'] ?? [] as $index => $matchItem) {
118118
if (in_array($matchItem['field'] ?? null, $partialMatchFilters, true)) {
119119
$data['queries'][$queryName]['match'][$index]['matchCondition'] = 'match_phrase_prefix';
120+
if ($matchItem['field'] === 'name') {
121+
$data['queries'][$queryName]['match'][$index]['analyzer'] = 'prefix_search';
122+
}
120123
}
121124
}
122125
}

0 commit comments

Comments
 (0)