We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c82c795 commit bff4a69Copy full SHA for bff4a69
app/code/Magento/CatalogSearch/Model/Search/Request/PartialSearchModifier.php
@@ -41,8 +41,12 @@ public function modify(array $requests): array
41
if ($matches) {
42
foreach ($matches as $index => $match) {
43
$field = $match['field'] ?? null;
44
- if ($field && $field !== '*' && !isset($attributes[$field])) {
45
- unset($matches[$index]);
+ if ($field && $field !== '*') {
+ if (!isset($attributes[$field])) {
46
+ unset($matches[$index]);
47
+ continue;
48
+ }
49
+ $matches[$index]['boost'] = $attributes[$field]->getSearchWeight() ?: 1;
50
}
51
52
$requests[$code]['queries']['partial_search']['match'] = array_values($matches);
0 commit comments