We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c4936c commit a7997dbCopy full SHA for a7997db
src/Response/ResultMapper.php
@@ -244,8 +244,9 @@ public function mapStats(
244
$total = $elasticSearchResponse['hits']['total'];
245
246
} elseif (isset($elasticSearchResponse['hits']['total']['value'])) {
247
- $elasticSearchResponse['hits']['total']['value'];
+ $total = $elasticSearchResponse['hits']['total']['value'];
248
}
249
+
250
return new Stats(
251
$elasticSearchResponse['took'],
252
$elasticSearchResponse['timed_out'],
0 commit comments