From 4132dd940a3636fb2d9f3d87a15cc04c5bd75ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 12 Feb 2014 14:37:34 +0100 Subject: [PATCH] search fix (introduced yesterday) --- src/app/controllers/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/controllers/search.js b/src/app/controllers/search.js index f7b3625ffe8..af6b42c7806 100644 --- a/src/app/controllers/search.js +++ b/src/app/controllers/search.js @@ -44,7 +44,7 @@ function (angular, _, config, $) { var request = $scope.ejs.Request().indices(config.grafana_index).types('dashboard'); // if elasticsearch has disabled _all field we need // need to specifiy field here - var q = 'title:' + (query || '*'); + var q = 'title:' + (query + '*' || '*'); return request.query($scope.ejs.QueryStringQuery(q)).size(50).doSearch() .then(function(results) {