diff --git a/Aggregation/TermsAggregation.php b/Aggregation/TermsAggregation.php
index 98b10e0de846fa28c621c77205cfcfe8064c30f1..385156588627f202b64829476e9ba5304065f98c 100644
--- a/Aggregation/TermsAggregation.php
+++ b/Aggregation/TermsAggregation.php
@@ -148,7 +148,7 @@ class TermsAggregation extends AbstractAggregation
             ];
         }
 
-        if ($this->size) {
+        if ($this->size !== null) {
             $data['size'] = $this->size;
         }