@@ -90,7 +90,7 @@ In this example:
90
90
example has only one ``gameId``, ``G1``.
91
91
- ``PlayerD`` has a missing score and ``PlayerE`` has a
92
92
null ``score``. These values are both ignored.
93
- - The ``minimumThreeScores`` field is specified as :pipeline :`$minN`
93
+ - The ``minimumThreeScores`` field is specified as :group :`$minN`
94
94
with ``input : "$score"`` and returned as an array.
95
95
- Since there are only 3 documents with ``scores`` ``minN`` returns
96
96
the minimum 3 ``score`` fields even though ``n = 4``.
@@ -108,19 +108,19 @@ In this example:
108
108
Comparison of ``$minN`` and ``$bottomN`` Accumulators
109
109
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
110
110
111
- Both :pipeline :`$minN` and :pipeline :`$bottomN` accumulators can accomplish
111
+ Both :group :`$minN` and :group :`$bottomN` accumulators can accomplish
112
112
similar results.
113
113
114
114
In general:
115
115
116
- - :pipeline :`$minN` has the advantage of finding minimum values
116
+ - :group :`$minN` has the advantage of finding minimum values
117
117
in no particular sort order. If you want to know the
118
- minimum values for ``n`` documents use :pipeline :`$minN`.
118
+ minimum values for ``n`` documents use :group :`$minN`.
119
119
120
120
- If guaranteing a particular sort order is a requirement
121
- use :pipeline :`$bottonN `.
121
+ use :group :`$bottomN `.
122
122
123
- - Use :pipeline :`$bottomN` if you don't intend on sorting on the output
123
+ - Use :group :`$bottomN` if you don't intend on sorting on the output
124
124
values.
125
125
126
126
Restrictions
@@ -129,12 +129,12 @@ Restrictions
129
129
Window Function and Aggregation Expression Support
130
130
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
131
131
132
- You can use :pipeline :`$minN` as an accumulator.
132
+ You can use :group :`$minN` as an accumulator.
133
133
134
- :pipeline :`$minN` is supported as an
134
+ :group :`$minN` is supported as an
135
135
:ref:`aggregation expression <aggregation-expressions>`.
136
136
137
- :pipeline :`$minN` is supported as a
137
+ :group :`$minN` is supported as a
138
138
:pipeline:`window operator <$setWindowFields>`.
139
139
140
140
Memory Limit Considerations
0 commit comments