Commit dbe35bfe by Torkel Ödegaard

change(elasticsearch): changed min_doc_count to zero in query to get buckets for…

change(elasticsearch): changed min_doc_count to zero in query to get buckets for missing values, fixes #3131
parent f1caae12
...@@ -126,7 +126,7 @@ function (angular) { ...@@ -126,7 +126,7 @@ function (angular) {
esAgg["date_histogram"] = { esAgg["date_histogram"] = {
"interval": this.getInterval(aggDef), "interval": this.getInterval(aggDef),
"field": this.timeField, "field": this.timeField,
"min_doc_count": 1, "min_doc_count": 0,
"extended_bounds": { "min": "$timeFrom", "max": "$timeTo" } "extended_bounds": { "min": "$timeFrom", "max": "$timeTo" }
}; };
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment