Skip to content
Snippets Groups Projects
Commit 6aac12e3 authored by Simonas Šerlinskas's avatar Simonas Šerlinskas
Browse files

Merge pull request #54 from ivannis/master

fixed a bug that ignored the zero value to the min_doc_count option
parents c2af9bc6 69d37377
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment