From 69d37377cc994ed6396d74a9b8313d745b5458fd Mon Sep 17 00:00:00 2001 From: Ivannis Suarez Jerez <ivannis.suarez@gmail.com> Date: Fri, 28 Nov 2014 15:05:23 +0000 Subject: [PATCH] fixed a bug that ignored the zero value to the min_doc_count option --- Aggregation/TermsAggregation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Aggregation/TermsAggregation.php b/Aggregation/TermsAggregation.php index 7d3e6d9..98b10e0 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; } -- GitLab