Browse Source

CONSOLEify scripted-metric agg docs

Related #18160
Zachary Tong 8 years ago
parent
commit
e7eda5e1be

+ 0 - 1
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',

+ 8 - 0
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