Commit 385ff1b0 by Nikolay Bryskin

derivequery: pass search filter to query

parent 050ee74c
...@@ -81,7 +81,7 @@ angular.module('kibana.derivequeries', []) ...@@ -81,7 +81,7 @@ angular.module('kibana.derivequeries', [])
$scope.panel.loading = false; $scope.panel.loading = false;
var data = []; var data = [];
_.each(results.facets.query.terms, function(v) { _.each(results.facets.query.terms, function(v) {
data.push($scope.panel.field+':"'+v.term+'"') data.push($scope.panel.field+':"'+v.term+'" AND ' + ($scope.panel.query || '*'))
}); });
$scope.send_query(data) $scope.send_query(data)
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment