We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 80d4618 + e623594 commit 8c535d8Copy full SHA for 8c535d8
app/code/Magento/Elasticsearch7/SearchAdapter/Adapter.php
@@ -121,12 +121,12 @@ public function query(RequestInterface $request) : QueryResponse
121
$rawResponse = self::$emptyRawResponse;
122
}
123
124
- $rawDocuments = isset($rawResponse['hits']['hits']) ?? [];
+ $rawDocuments = $rawResponse['hits']['hits'] ?? [];
125
$queryResponse = $this->responseFactory->create(
126
[
127
'documents' => $rawDocuments,
128
'aggregations' => $aggregationBuilder->build($request, $rawResponse),
129
- 'total' => isset($rawResponse['hits']['total']['value']) ?? 0
+ 'total' => $rawResponse['hits']['total']['value'] ?? 0
130
]
131
);
132
return $queryResponse;
0 commit comments