diff --git a/public/app/features/templating/templateSrv.js b/public/app/features/templating/templateSrv.js index 48aa4edde85..9a59510c6a4 100644 --- a/public/app/features/templating/templateSrv.js +++ b/public/app/features/templating/templateSrv.js @@ -44,7 +44,10 @@ function (angular, _) { return '(' + value.join('|') + ')'; } case "lucene": { - return '(' + value.join(' OR ') + ')'; + var quotedValues = _.map(value, function(val) { + return '\\\"' + val + '\\\"'; + }); + return '(' + quotedValues.join(' OR ') + ')'; } case "pipe": { return value.join('|'); diff --git a/public/app/features/templating/templateValuesSrv.js b/public/app/features/templating/templateValuesSrv.js index 5ec9ae85e4a..18216fabd0f 100644 --- a/public/app/features/templating/templateValuesSrv.js +++ b/public/app/features/templating/templateValuesSrv.js @@ -262,7 +262,10 @@ function (angular, _, kbn) { break; } case 'lucene': { - allValue = '(' + _.pluck(variable.options, 'text').join(' OR ') + ')'; + var quotedValues = _.map(variable.options, function(val) { + return '\\\"' + val.text + '\\\"'; + }); + allValue = '(' + quotedValues.join(' OR ') + ')'; break; } case 'regex values': { diff --git a/public/app/panels/graph/axisEditor.html b/public/app/panels/graph/axisEditor.html index d161330f5c0..41ea8dd3696 100644 --- a/public/app/panels/graph/axisEditor.html +++ b/public/app/panels/graph/axisEditor.html @@ -4,7 +4,7 @@
-
+