Skip to content

Commit 8c535d8

Browse files
committed
Merge branch 'elasticsearch_spike' into MC-31465
2 parents 80d4618 + e623594 commit 8c535d8

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Elasticsearch7/SearchAdapter

1 file changed

+2
-2
lines changed

app/code/Magento/Elasticsearch7/SearchAdapter/Adapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ public function query(RequestInterface $request) : QueryResponse
121121
$rawResponse = self::$emptyRawResponse;
122122
}
123123

124-
$rawDocuments = isset($rawResponse['hits']['hits']) ?? [];
124+
$rawDocuments = $rawResponse['hits']['hits'] ?? [];
125125
$queryResponse = $this->responseFactory->create(
126126
[
127127
'documents' => $rawDocuments,
128128
'aggregations' => $aggregationBuilder->build($request, $rawResponse),
129-
'total' => isset($rawResponse['hits']['total']['value']) ?? 0
129+
'total' => $rawResponse['hits']['total']['value'] ?? 0
130130
]
131131
);
132132
return $queryResponse;

0 commit comments

Comments
 (0)