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.
1 parent 63a993e commit dd59c4eCopy full SHA for dd59c4e
src/Response/ResultMapper.php
@@ -201,9 +201,9 @@ private function mapAggregation(
201
}
202
203
204
- if (isset($aggregationArray[$name]['hits'])) {
205
- foreach ($aggregationArray[$name]['hits'] as $hitPosition => $hit) {
206
- $hits[] = $this->mapHit($hit, $hitPosition);
+ if (isset($aggregationArray['hits']['hits'])) {
+ foreach ($aggregationArray['hits']['hits'] as $hitPosition => $hit) {
+ $hits[] = $this->mapHit($hit, (int) $hitPosition);
207
208
209
0 commit comments