CONSOLEify scripted-metric agg docs

Related #18160
This commit is contained in:
Zachary Tong 2017-08-03 16:05:43 -04:00
parent c9bb686927
commit e7eda5e1be
No known key found for this signature in database
GPG Key ID: A42721DDA5679EFB
2 changed files with 8 additions and 1 deletions

View File

@ -31,7 +31,6 @@ buildRestTests.expectedUnconvertedCandidates = [
'reference/aggregations/bucket/significantterms-aggregation.asciidoc', 'reference/aggregations/bucket/significantterms-aggregation.asciidoc',
'reference/aggregations/bucket/terms-aggregation.asciidoc', 'reference/aggregations/bucket/terms-aggregation.asciidoc',
'reference/aggregations/matrix/stats-aggregation.asciidoc', 'reference/aggregations/matrix/stats-aggregation.asciidoc',
'reference/aggregations/metrics/scripted-metric-aggregation.asciidoc',
'reference/aggregations/metrics/tophits-aggregation.asciidoc', 'reference/aggregations/metrics/tophits-aggregation.asciidoc',
'reference/cluster/allocation-explain.asciidoc', 'reference/cluster/allocation-explain.asciidoc',
'reference/cluster/nodes-info.asciidoc', 'reference/cluster/nodes-info.asciidoc',

View File

@ -176,6 +176,7 @@ No params object was specified so the default params object is used:
"_agg" : {} "_agg" : {}
} }
-------------------------------------------------- --------------------------------------------------
// NOTCONSOLE
===== After init_script ===== After init_script
@ -191,6 +192,7 @@ Shard A::
} }
} }
-------------------------------------------------- --------------------------------------------------
// NOTCONSOLE
Shard B:: Shard B::
+ +
@ -202,6 +204,7 @@ Shard B::
} }
} }
-------------------------------------------------- --------------------------------------------------
// NOTCONSOLE
===== After map_script ===== After map_script
@ -217,6 +220,7 @@ Shard A::
} }
} }
-------------------------------------------------- --------------------------------------------------
// NOTCONSOLE
Shard B:: Shard B::
+ +
@ -228,6 +232,7 @@ Shard B::
} }
} }
-------------------------------------------------- --------------------------------------------------
// NOTCONSOLE
===== After combine_script ===== After combine_script
@ -248,6 +253,7 @@ The reduce_script receives an `_aggs` array containing the result of the combine
120 120
] ]
-------------------------------------------------- --------------------------------------------------
// NOTCONSOLE
It reduces the responses for the shards down to a final overall profit figure (by summing the values) and returns this as the result of the aggregation to It reduces the responses for the shards down to a final overall profit figure (by summing the values) and returns this as the result of the aggregation to
produce the response: produce the response:
@ -264,6 +270,7 @@ produce the response:
} }
} }
-------------------------------------------------- --------------------------------------------------
// NOTCONSOLE
==== Other Parameters ==== Other Parameters
@ -278,6 +285,7 @@ params:: Optional. An object whose contents will be passed as variable
"_agg" : {} "_agg" : {}
} }
-------------------------------------------------- --------------------------------------------------
// NOTCONSOLE
==== Empty Buckets ==== Empty Buckets