change(elasticsearch): changed min_doc_count to zero in query to get buckets for missing values, fixes #3131

This commit is contained in:
Torkel Ödegaard
2015-11-12 16:06:10 +01:00
parent f1caae126e
commit dbe35bfed1

View File

@@ -126,7 +126,7 @@ function (angular) {
esAgg["date_histogram"] = {
"interval": this.getInterval(aggDef),
"field": this.timeField,
"min_doc_count": 1,
"min_doc_count": 0,
"extended_bounds": { "min": "$timeFrom", "max": "$timeTo" }
};
break;