File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
app/code/Magento/Elasticsearch/SearchAdapter/Query/Builder Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,12 @@ protected function buildQueries(array $matches, array $queryValue)
138
138
139
139
$ transformedTypes = [];
140
140
foreach ($ matches as $ match ) {
141
- $ attributeAdapter = $ this ->attributeProvider ->getByAttributeCode ($ match ['field ' ]);
141
+ $ resolvedField = $ this ->fieldMapper ->getFieldName (
142
+ $ match ['field ' ],
143
+ ['type ' => FieldMapperInterface::TYPE_QUERY ]
144
+ );
145
+
146
+ $ attributeAdapter = $ this ->attributeProvider ->getByAttributeCode ($ resolvedField );
142
147
$ fieldType = $ this ->fieldTypeResolver ->getFieldType ($ attributeAdapter );
143
148
$ valueTransformer = $ this ->valueTransformerPool ->get ($ fieldType ?? 'text ' );
144
149
$ valueTransformerHash = \spl_object_hash ($ valueTransformer );
@@ -151,10 +156,6 @@ protected function buildQueries(array $matches, array $queryValue)
151
156
continue ;
152
157
}
153
158
154
- $ resolvedField = $ this ->fieldMapper ->getFieldName (
155
- $ match ['field ' ],
156
- ['type ' => FieldMapperInterface::TYPE_QUERY ]
157
- );
158
159
$ conditions [] = [
159
160
'condition ' => $ queryValue ['condition ' ],
160
161
'body ' => [
You can’t perform that action at this time.
0 commit comments