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