Skip to content

Commit

Permalink
CONSOLEify scripted-metric agg docs
Browse files Browse the repository at this point in the history
Related #18160
  • Loading branch information
polyfractal committed Aug 3, 2017
1 parent 33ae4e6 commit 19eeb4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ No params object was specified so the default params object is used:
"_agg" : {}
}
--------------------------------------------------
// NOTCONSOLE

===== After init_script

Expand All @@ -191,6 +192,7 @@ Shard A::
}
}
--------------------------------------------------
// NOTCONSOLE

Shard B::
+
Expand All @@ -202,6 +204,7 @@ Shard B::
}
}
--------------------------------------------------
// NOTCONSOLE

===== After map_script

Expand All @@ -217,6 +220,7 @@ Shard A::
}
}
--------------------------------------------------
// NOTCONSOLE

Shard B::
+
Expand All @@ -228,6 +232,7 @@ Shard B::
}
}
--------------------------------------------------
// NOTCONSOLE

===== After combine_script

Expand All @@ -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:
Expand All @@ -264,6 +270,7 @@ produce the response:
}
}
--------------------------------------------------
// NOTCONSOLE

==== Other Parameters

Expand All @@ -278,6 +285,7 @@ params:: Optional. An object whose contents will be passed as variable
"_agg" : {}
}
--------------------------------------------------
// NOTCONSOLE

==== Empty Buckets

Expand Down

0 comments on commit 19eeb4b

Please sign in to comment.