|
@@ -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
|
|
|
|