From dbe35bfed1c02bb590b11203d729f033776a6eb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 12 Nov 2015 16:06:10 +0100 Subject: [PATCH] change(elasticsearch): changed min_doc_count to zero in query to get buckets for missing values, fixes #3131 --- public/app/plugins/datasource/elasticsearch/query_builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/elasticsearch/query_builder.js b/public/app/plugins/datasource/elasticsearch/query_builder.js index 3a956012a86..129c52d3f02 100644 --- a/public/app/plugins/datasource/elasticsearch/query_builder.js +++ b/public/app/plugins/datasource/elasticsearch/query_builder.js @@ -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;