From 684c587ee3a14f4a675472ba63b9e97e3f39e938 Mon Sep 17 00:00:00 2001 From: Boaz Leskes Date: Wed, 8 Jan 2014 14:40:58 +0100 Subject: [PATCH] Histrograms should use the count search type when they only rely on facets. --- src/app/panels/histogram/module.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/panels/histogram/module.js b/src/app/panels/histogram/module.js index 7493933b57332..91e921692569c 100644 --- a/src/app/panels/histogram/module.js +++ b/src/app/panels/histogram/module.js @@ -327,6 +327,9 @@ function (angular, app, $, _, kbn, moment, timeSeries) { $scope.panelMeta.loading = true; request = $scope.ejs.Request().indices(dashboard.indices[segment]); + if (!$scope.panel.annotate.enable) { + request.searchType("count"); + } $scope.panel.queries.ids = querySrv.idsByMode($scope.panel.queries);