Skip to content

Commit

Permalink
Merge pull request #3 from colings86/enhancement/aggAutocompleteUpdate
Browse files Browse the repository at this point in the history
Makes agg autocomplete rules up to date with ES 2.0

Closes #3
  • Loading branch information
bleskes committed Jul 6, 2015
2 parents 71d314b + 9158b29 commit 750f964
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions app/kb/api_2_0/aggregations.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ define(function () {
"min": simple_metric,
"max": simple_metric,
"avg": simple_metric,
"sum": simple_metric,
"stats": simple_metric,
"extended_stats": simple_metric,
"value_count": {
Expand All @@ -65,6 +66,16 @@ define(function () {
},
"global": {},
"filter": {},
"filters": {
__template: {
"filters": {
"NAME": { __scope_link: "GLOBAL.filter" }
}
},
"filters": {},
"other_bucket": { __one_of: [ true, false ] },
"other_bucket_key": ""
},
"missing": field_metric,
"nested": {
__template: {
Expand Down Expand Up @@ -338,7 +349,29 @@ define(function () {
values: [ 10, 15]
},
field: "{field}",
values: []
values: [],
"script": {
// populated by a global rule
},
"compression": 100
},
"sampler": {
__template: {

},
"field": "{field}",
"script": {
// populated by a global rule
},
"shard_size": 100,
"max_docs_per_value": 3,
"execution_hint": { __one_of: ["map", "global_ordinals", "bytes_hash" ] }
},
"children": {
__template: {
"type": "",
},
"type": ""
},
"derivative": simple_pipeline,
"avg_bucket": simple_pipeline,
Expand All @@ -362,7 +395,14 @@ define(function () {
period: 7
}
},
"series_arithmetic": {
"cumulative_sum": {
__template: {
buckets_path: ""
},
buckets_path: "",
format: ""
},
"bucket_script": {
__template: {
buckets_path: "",
script: {}
Expand Down

0 comments on commit 750f964

Please sign in to comment.