-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added metatdata - Fixed conflicts for ACSD-54106
- Loading branch information
Showing
6 changed files
with
109 additions
and
21 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
diff --git a/vendor/magento/module-elasticsearch/Model/Adapter/FieldMapper/Product/FieldProvider/StaticField.php b/vendor/magento/module-elasticsearch/Model/Adapter/FieldMapper/Product/FieldProvider/StaticField.php | ||
index f1ba54bf7e5..e927aee01aa 100644 | ||
--- a/vendor/magento/module-elasticsearch/Model/Adapter/FieldMapper/Product/FieldProvider/StaticField.php | ||
+++ b/vendor/magento/module-elasticsearch/Model/Adapter/FieldMapper/Product/FieldProvider/StaticField.php | ||
@@ -150,7 +150,7 @@ class StaticField implements FieldProviderInterface | ||
$fieldMapping[$fieldName]['index'] = $index; | ||
} | ||
|
||
- if ($attributeAdapter->isSortable()) { | ||
+ if ($attributeAdapter->isSortable() && !$attributeAdapter->isComplexType()) { | ||
$sortFieldName = $this->fieldNameResolver->getFieldName( | ||
$attributeAdapter, | ||
['type' => FieldMapperInterface::TYPE_SORT] | ||
@@ -161,7 +161,8 @@ class StaticField implements FieldProviderInterface | ||
), | ||
'index' => $this->indexTypeConverter->convert( | ||
IndexTypeConverterInterface::INTERNAL_NO_ANALYZE_VALUE | ||
- ) | ||
+ ), | ||
+ 'normalizer' => 'folding', | ||
]; | ||
} | ||
|
||
@@ -188,6 +189,21 @@ class StaticField implements FieldProviderInterface | ||
$fieldMapping[$childFieldName] = [ | ||
'type' => $this->fieldTypeConverter->convert(FieldTypeConverterInterface::INTERNAL_DATA_TYPE_STRING) | ||
]; | ||
+ if ($attributeAdapter->isSortable()) { | ||
+ $sortFieldName = $this->fieldNameResolver->getFieldName( | ||
+ $attributeAdapter, | ||
+ ['type' => FieldMapperInterface::TYPE_SORT] | ||
+ ); | ||
+ $fieldMapping[$childFieldName]['fields'][$sortFieldName] = [ | ||
+ 'type' => $this->fieldTypeConverter->convert( | ||
+ FieldTypeConverterInterface::INTERNAL_DATA_TYPE_KEYWORD | ||
+ ), | ||
+ 'index' => $this->indexTypeConverter->convert( | ||
+ IndexTypeConverterInterface::INTERNAL_NO_ANALYZE_VALUE | ||
+ ), | ||
+ 'normalizer' => 'folding', | ||
+ ]; | ||
+ } | ||
} | ||
|
||
return $fieldMapping; | ||
diff --git a/vendor/magento/module-elasticsearch/Model/Adapter/Index/Builder.php b/vendor/magento/module-elasticsearch/Model/Adapter/Index/Builder.php | ||
index 26ced6c8361..7e6d50b4a04 100644 | ||
--- a/vendor/magento/module-elasticsearch/Model/Adapter/Index/Builder.php | ||
+++ b/vendor/magento/module-elasticsearch/Model/Adapter/Index/Builder.php | ||
@@ -105,6 +105,12 @@ class Builder implements BuilderInterface | ||
'tokenizer' => $tokenizer, | ||
'filter' => array_merge($filter, $synonymFilter), | ||
'char_filter' => $charFilter, | ||
+ 'normalizer' => [ | ||
+ 'folding' => [ | ||
+ 'type' => 'custom', | ||
+ 'filter' => ['asciifolding', 'lowercase'], | ||
+ ], | ||
+ ], | ||
], | ||
]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
report.CRITICAL: Magento\Framework\Exception\FileSystemException: File "/app/pub/media/catalog/product/_/o/_object_Object_.jpg" does not exist. in /app/vendor/magento/framework/Image/Adapter/Gd2.php:65 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[previous exception] [object] (Magento\\Framework\\GraphQl\\Exception\\GraphQlInputException(code: 0): Customer is not a company user. at /app/vendor/magento/module-company-graph-ql/Model/Company/ResolverAccess.php:55)"} [] |