Skip to content

Commit

Permalink
Remove filtering of empty _raw values (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
toooni authored Feb 10, 2020
1 parent 428d21e commit b1d3895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Result/DocumentIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ protected function convertDocument(array $raw)
$data = $raw['_source'] ?? $raw['_fields'] ?? null;
$data['_id'] = $raw['_id'] ?? null;

return $this->getConverter()->convertArrayToDocument($this->getIndex()->getNamespace(), array_filter($data));
return $this->getConverter()->convertArrayToDocument($this->getIndex()->getNamespace(), $data);
}
}

0 comments on commit b1d3895

Please sign in to comment.