File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
app/code/Magento/Elasticsearch/Model/Adapter/FieldMapper/Product/FieldProvider Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -132,11 +132,17 @@ public function getFields(array $context = []): array
132
132
133
133
if ($ attributeAdapter ->isTextType ()) {
134
134
$ keywordFieldName = FieldTypeConverterInterface::INTERNAL_DATA_TYPE_KEYWORD ;
135
+ $ index = $ this ->indexTypeConverter ->convert (
136
+ IndexTypeConverterInterface::INTERNAL_NO_ANALYZE_VALUE
137
+ );
135
138
$ allAttributes [$ fieldName ]['fields ' ][$ keywordFieldName ] = [
136
139
'type ' => $ this ->fieldTypeConverter ->convert (
137
140
FieldTypeConverterInterface::INTERNAL_DATA_TYPE_KEYWORD
138
141
)
139
142
];
143
+ if ($ index ) {
144
+ $ allAttributes [$ fieldName ]['fields ' ][$ keywordFieldName ]['index ' ] = $ index ;
145
+ }
140
146
}
141
147
142
148
if ($ attributeAdapter ->isComplexType ()) {
You can’t perform that action at this time.
0 commit comments