Explorar el Código

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

Torkel Ödegaard hace 10 años
padre
commit
dbe35bfed1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      public/app/plugins/datasource/elasticsearch/query_builder.js

+ 1 - 1
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;