diff --git a/Result/DocumentIterator.php b/Result/DocumentIterator.php index 7665fe9f..bc767930 100644 --- a/Result/DocumentIterator.php +++ b/Result/DocumentIterator.php @@ -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); } }