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)
5959 {
6060 $ ids = [];
6161 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 ' ] )) {
6363 $ document ['_id ' ] = $ document ['fields ' ]['_id ' ][0 ];
6464 unset($ document ['fields ' ]);
6565 }
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public function create($response)
6464 {
6565 $ documents = [];
6666 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 ' ] )) {
6868 $ rawDocument ['_id ' ] = $ rawDocument ['fields ' ]['_id ' ][0 ];
6969 unset($ rawDocument ['fields ' ]);
7070 }
You can’t perform that action at this time.
0 commit comments