From d55ad64bc9d7db82c077948f6696f42b88bb3675 Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Tue, 11 Feb 2014 15:27:33 -0700 Subject: [PATCH] Filter builder and facets should use same value. Closes #845 --- src/app/panels/terms/module.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/panels/terms/module.js b/src/app/panels/terms/module.js index d30dff4a414b2..bf72f38ae012d 100644 --- a/src/app/panels/terms/module.js +++ b/src/app/panels/terms/module.js @@ -167,7 +167,7 @@ function (angular, app, _, $, kbn) { if($scope.panel.tmode === 'terms') { request = request .facet($scope.ejs.TermsFacet('terms') - .field($scope.panel.field) + .field($scope.field) .size($scope.panel.size) .order($scope.panel.order) .exclude($scope.panel.exclude) @@ -181,7 +181,7 @@ function (angular, app, _, $, kbn) { request = request .facet($scope.ejs.TermStatsFacet('terms') .valueField($scope.panel.valuefield) - .keyField($scope.panel.field) + .keyField($scope.field) .size($scope.panel.size) .order($scope.panel.order) .facetFilter($scope.ejs.QueryFilter(