Skip to content
Snippets Groups Projects
Commit 69d37377 authored by Ivannis Suarez Jerez's avatar Ivannis Suarez Jerez
Browse files

fixed a bug that ignored the zero value to the min_doc_count option

parent fdca6459
No related branches found
No related tags found
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