fix(elasticsearch): quote variable value in lucene variable mulit format, fixes #2828

This commit is contained in:
Torkel Ödegaard
2015-09-28 11:28:08 +02:00
parent b80dc92ca5
commit a567939f78
4 changed files with 10 additions and 4 deletions
@@ -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': {