Skip to content

Commit 78cf0ec

Browse files
committed
ACP2E-2279: A-Z Product sorting for Turkish characters
1 parent 824661b commit 78cf0ec

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

app/code/Magento/Elasticsearch/Model/Adapter/FieldMapper/Product/FieldProvider/StaticField.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ public function getField(AbstractAttribute $attribute): array
164164
),
165165
'index' => $this->indexTypeConverter->convert(
166166
IndexTypeConverterInterface::INTERNAL_NO_ANALYZE_VALUE
167-
)
167+
),
168+
'normalizer' => 'folding',
168169
];
169170
}
170171

@@ -202,7 +203,8 @@ public function getField(AbstractAttribute $attribute): array
202203
),
203204
'index' => $this->indexTypeConverter->convert(
204205
IndexTypeConverterInterface::INTERNAL_NO_ANALYZE_VALUE
205-
)
206+
),
207+
'normalizer' => 'folding',
206208
];
207209
}
208210
}

app/code/Magento/Elasticsearch/Model/Adapter/Index/Builder.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ public function build()
105105
'tokenizer' => $tokenizer,
106106
'filter' => array_merge($filter, $synonymFilter),
107107
'char_filter' => $charFilter,
108+
'normalizer' => [
109+
'folding' => [
110+
'type' => 'custom',
111+
'filter' => ['asciifolding', 'lowercase'],
112+
],
113+
],
108114
],
109115
];
110116

0 commit comments

Comments
 (0)