Commit d2d4809f by Rashid Khan

Added order option to terms table

parent b498e197
......@@ -211,7 +211,6 @@ angular.module('kibana.table', [])
$scope.all_fields = kbn.get_all_fields(_.pluck($scope.data,'_source'));
fields.add_fields($scope.all_fields);
console.log(fields);
// If we're not sorting in reverse chrono order, query every index for
// size*pages results
......
......@@ -8,7 +8,11 @@
<label class="small">Length</label>
<input class="input-small" type="number" ng-model="panel.size" ng-change="set_refresh(true)">
</div>
<div class="span6">
<div class="span3">
<label class="small">Order</label>
<select class="input-medium" ng-model="panel.order" ng-options="f for f in ['count','term','reverse_count','reverse_term']" ng-change="set_refresh(true)"></select></span>
</div>
<div class="span4">
<label class="small">Exclude Terms(s) (comma seperated)</label>
<input array-join type="text" ng-model='panel.exclude'></input>
</div>
......
......@@ -38,6 +38,7 @@ angular.module('kibana.terms', [])
missing : true,
other : true,
size : 10,
order : 'count',
style : { "font-size": '10pt'},
donut : false,
tilt : false,
......@@ -83,6 +84,7 @@ angular.module('kibana.terms', [])
.facet($scope.ejs.TermsFacet('terms')
.field($scope.panel.field)
.size($scope.panel.size)
.order($scope.panel.order)
.exclude($scope.panel.exclude)
.facetFilter($scope.ejs.QueryFilter(
$scope.ejs.FilteredQuery(
......
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