소스 검색

Allowing "Unique Count"s of any data type (#7704)

Joseph Pintozzi 8 년 전
부모
커밋
a37a2259b3
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      public/app/plugins/datasource/elasticsearch/metric_agg.js

+ 3 - 0
public/app/plugins/datasource/elasticsearch/metric_agg.js

@@ -162,6 +162,9 @@ function (angular, _, queryDef) {
     };
 
     $scope.getFieldsInternal = function() {
+      if ($scope.agg.type === 'cardinality') {
+        return $scope.getFields();
+      }
       return $scope.getFields({$fieldType: 'number'});
     };