diff --git a/app/code/Magento/Elasticsearch7/SearchAdapter/Adapter.php b/app/code/Magento/Elasticsearch7/SearchAdapter/Adapter.php index bbc7985f4519d..b4ce19d5c81a0 100644 --- a/app/code/Magento/Elasticsearch7/SearchAdapter/Adapter.php +++ b/app/code/Magento/Elasticsearch7/SearchAdapter/Adapter.php @@ -113,13 +113,7 @@ public function query(RequestInterface $request) : QueryResponse $query = $this->mapper->buildQuery($request); $aggregationBuilder->setQuery($this->queryContainerFactory->create(['query' => $query])); - try { - $rawResponse = $client->query($query); - } catch (\Exception $e) { - $this->logger->critical($e); - // return empty search result in case an exception is thrown from Elasticsearch - $rawResponse = self::$emptyRawResponse; - } + $rawResponse = $client->query($query); $rawDocuments = $rawResponse['hits']['hits'] ?? []; $queryResponse = $this->responseFactory->create(