Skip to content

Commit a7997db

Browse files
committed
Fixup total buckets
1 parent 1c4936c commit a7997db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Response/ResultMapper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,9 @@ public function mapStats(
244244
$total = $elasticSearchResponse['hits']['total'];
245245

246246
} elseif (isset($elasticSearchResponse['hits']['total']['value'])) {
247-
$elasticSearchResponse['hits']['total']['value'];
247+
$total = $elasticSearchResponse['hits']['total']['value'];
248248
}
249+
249250
return new Stats(
250251
$elasticSearchResponse['took'],
251252
$elasticSearchResponse['timed_out'],

0 commit comments

Comments
 (0)