Przeglądaj źródła

search fix (introduced yesterday)

Torkel Ödegaard 12 lat temu
rodzic
commit
4132dd940a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/app/controllers/search.js

+ 1 - 1
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) {