Skip to content

Commit 19eeb4b

Browse files
committed
CONSOLEify scripted-metric agg docs
Related #18160
1 parent 33ae4e6 commit 19eeb4b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docs/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ buildRestTests.expectedUnconvertedCandidates = [
3131
'reference/aggregations/bucket/significantterms-aggregation.asciidoc',
3232
'reference/aggregations/bucket/terms-aggregation.asciidoc',
3333
'reference/aggregations/matrix/stats-aggregation.asciidoc',
34-
'reference/aggregations/metrics/scripted-metric-aggregation.asciidoc',
3534
'reference/aggregations/metrics/tophits-aggregation.asciidoc',
3635
'reference/cluster/allocation-explain.asciidoc',
3736
'reference/cluster/nodes-info.asciidoc',

docs/reference/aggregations/metrics/scripted-metric-aggregation.asciidoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ No params object was specified so the default params object is used:
176176
"_agg" : {}
177177
}
178178
--------------------------------------------------
179+
// NOTCONSOLE
179180

180181
===== After init_script
181182

@@ -191,6 +192,7 @@ Shard A::
191192
}
192193
}
193194
--------------------------------------------------
195+
// NOTCONSOLE
194196

195197
Shard B::
196198
+
@@ -202,6 +204,7 @@ Shard B::
202204
}
203205
}
204206
--------------------------------------------------
207+
// NOTCONSOLE
205208

206209
===== After map_script
207210

@@ -217,6 +220,7 @@ Shard A::
217220
}
218221
}
219222
--------------------------------------------------
223+
// NOTCONSOLE
220224

221225
Shard B::
222226
+
@@ -228,6 +232,7 @@ Shard B::
228232
}
229233
}
230234
--------------------------------------------------
235+
// NOTCONSOLE
231236

232237
===== After combine_script
233238

@@ -248,6 +253,7 @@ The reduce_script receives an `_aggs` array containing the result of the combine
248253
120
249254
]
250255
--------------------------------------------------
256+
// NOTCONSOLE
251257

252258
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
253259
produce the response:
@@ -264,6 +270,7 @@ produce the response:
264270
}
265271
}
266272
--------------------------------------------------
273+
// NOTCONSOLE
267274

268275
==== Other Parameters
269276

@@ -278,6 +285,7 @@ params:: Optional. An object whose contents will be passed as variable
278285
"_agg" : {}
279286
}
280287
--------------------------------------------------
288+
// NOTCONSOLE
281289

282290
==== Empty Buckets
283291

0 commit comments

Comments
 (0)