Skip to content

Commit 6b7907c

Browse files
committed
ACP2E-3892: [Mainline] Unpopulated pages are cached due to search engine errors
1 parent 2e27dcd commit 6b7907c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Elasticsearch/ElasticAdapter/SearchAdapter/Adapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function query(RequestInterface $request)
9696
$rawResponse = $client->query($query);
9797
} catch (\Exception $e) {
9898
$this->logger->critical($e);
99-
throw new ClientException(__("Could not perform search query."), $e, $e->getCode());
99+
throw new ClientException("Could not perform search query.", $e, $e->getCode());
100100
}
101101

102102
$rawDocuments = isset($rawResponse['hits']['hits']) ? $rawResponse['hits']['hits'] : [];

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function query(RequestInterface $request): QueryResponse
9898
$rawResponse = $client->query($query);
9999
} catch (\Exception $e) {
100100
$this->logger->critical($e);
101-
throw new ClientException(__("Could not perform search query."), $e->getCode(), $e);
101+
throw new ClientException("Could not perform search query.", $e->getCode(), $e);
102102
}
103103

104104
$rawDocuments = $rawResponse['hits']['hits'] ?? [];

0 commit comments

Comments
 (0)