[elasticsearch] Add option for result set size in raw_dcument

it allows to specify the result set size in raw_document.
 Example: table  panel could show more (or less) than 500 line if needed.
 Added test to spec
This commit is contained in:
Dhia MOAKHAR
2017-06-02 23:56:48 +00:00
parent d47c47853a
commit 966c2912fc
4 changed files with 22 additions and 4 deletions

View File

@@ -103,6 +103,8 @@ function (angular, _, queryDef) {
break;
}
case 'raw_document': {
$scope.agg.settings.size = $scope.agg.settings.size || 500;
$scope.settingsLinkText = 'Size: ' + $scope.agg.settings.size ;
$scope.target.metrics = [$scope.agg];
$scope.target.bucketAggs = [];
break;