File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/code/Magento/Elasticsearch/SearchAdapter Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ private function getEntityStorage(array $queryResult)
59
59
{
60
60
$ ids = [];
61
61
foreach ($ queryResult ['hits ' ]['hits ' ] as $ document ) {
62
- if (!array_key_exists ('_id ' , $ document ) && array_key_exists ('fields ' , $ document )) {
62
+ if (!array_key_exists ('_id ' , $ document ) && array_key_exists ('_id ' , $ document[ ' fields ' ] )) {
63
63
$ document ['_id ' ] = $ document ['fields ' ]['_id ' ][0 ];
64
64
unset($ document ['fields ' ]);
65
65
}
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public function create($response)
64
64
{
65
65
$ documents = [];
66
66
foreach ($ response ['documents ' ] as $ rawDocument ) {
67
- if (!array_key_exists ('_id ' , $ rawDocument ) && array_key_exists ('fields ' , $ rawDocument )) {
67
+ if (!array_key_exists ('_id ' , $ rawDocument ) && array_key_exists ('_id ' , $ rawDocument[ ' fields ' ] )) {
68
68
$ rawDocument ['_id ' ] = $ rawDocument ['fields ' ]['_id ' ][0 ];
69
69
unset($ rawDocument ['fields ' ]);
70
70
}
You can’t perform that action at this time.
0 commit comments