File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
source/reference/operator/aggregation Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,20 @@ Definition
23
23
documents into the specified number of buckets.
24
24
25
25
Each bucket is represented as a document in the output. The document
26
- for each bucket contains an ``_id`` field, whose value specifies the
27
- inclusive lower bound and the exclusive upper bound for the bucket,
28
- and a ``count`` field that contains the number of documents in the
29
- bucket. The ``count`` field is included by default when the
30
- ``output`` is not specified.
26
+ for each bucket contains:
27
+
28
+ - An ``_id`` object that specifies the bounds of the bucket.
29
+
30
+ - The ``_id.min`` field specifies the inclusive lower bound for the
31
+ bucket.
32
+
33
+ - The ``_id.max`` field specifies the upper bound for the bucket.
34
+ This bound is exclusive for all buckets except the final
35
+ bucket in the series, where it is inclusive.
36
+
37
+ - A ``count`` field that contains the number of documents in the
38
+ bucket. The ``count`` field is included by default when the
39
+ ``output`` document is not specified.
31
40
32
41
The :pipeline:`$bucketAuto` stage has the following form:
33
42
You can’t perform that action at this time.
0 commit comments