File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
app/code/Magento/Elasticsearch/Model/Adapter
FieldMapper/Product/FieldProvider Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments