search fix (introduced yesterday)

This commit is contained in:
Torkel Ödegaard
2014-02-12 14:37:34 +01:00
parent 9fc6d3d6f0
commit 4132dd940a
+1 -1
View File
@@ -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) {