diff --git a/docs/build.gradle b/docs/build.gradle index e6543e450b7..1c9a810d6f1 100644 --- a/docs/build.gradle +++ b/docs/build.gradle @@ -31,7 +31,6 @@ buildRestTests.expectedUnconvertedCandidates = [ 'reference/aggregations/bucket/significantterms-aggregation.asciidoc', 'reference/aggregations/bucket/terms-aggregation.asciidoc', 'reference/aggregations/matrix/stats-aggregation.asciidoc', - 'reference/aggregations/metrics/scripted-metric-aggregation.asciidoc', 'reference/aggregations/metrics/tophits-aggregation.asciidoc', 'reference/cluster/allocation-explain.asciidoc', 'reference/cluster/nodes-info.asciidoc', diff --git a/docs/reference/aggregations/metrics/scripted-metric-aggregation.asciidoc b/docs/reference/aggregations/metrics/scripted-metric-aggregation.asciidoc index 252f193063d..dff8bd68bbd 100644 --- a/docs/reference/aggregations/metrics/scripted-metric-aggregation.asciidoc +++ b/docs/reference/aggregations/metrics/scripted-metric-aggregation.asciidoc @@ -176,6 +176,7 @@ No params object was specified so the default params object is used: "_agg" : {} } -------------------------------------------------- +// NOTCONSOLE ===== After init_script @@ -191,6 +192,7 @@ Shard A:: } } -------------------------------------------------- +// NOTCONSOLE Shard B:: + @@ -202,6 +204,7 @@ Shard B:: } } -------------------------------------------------- +// NOTCONSOLE ===== After map_script @@ -217,6 +220,7 @@ Shard A:: } } -------------------------------------------------- +// NOTCONSOLE Shard B:: + @@ -228,6 +232,7 @@ Shard B:: } } -------------------------------------------------- +// NOTCONSOLE ===== After combine_script @@ -248,6 +253,7 @@ The reduce_script receives an `_aggs` array containing the result of the combine 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 produce the response: @@ -264,6 +270,7 @@ produce the response: } } -------------------------------------------------- +// NOTCONSOLE ==== Other Parameters @@ -278,6 +285,7 @@ params:: Optional. An object whose contents will be passed as variable "_agg" : {} } -------------------------------------------------- +// NOTCONSOLE ==== Empty Buckets