@@ -90,7 +90,7 @@ In this example:
9090 example has only one ``gameId``, ``G1``.
9191- ``PlayerD`` has a missing score and ``PlayerE`` has a
9292 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`
9494 with ``input : "$score"`` and returned as an array.
9595- Since there are only 3 documents with ``scores`` ``minN`` returns
9696 the minimum 3 ``score`` fields even though ``n = 4``.
@@ -108,19 +108,19 @@ In this example:
108108Comparison of ``$minN`` and ``$bottomN`` Accumulators
109109~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
110110
111- Both :pipeline :`$minN` and :pipeline :`$bottomN` accumulators can accomplish
111+ Both :group :`$minN` and :group :`$bottomN` accumulators can accomplish
112112similar results.
113113
114114In general:
115115
116- - :pipeline :`$minN` has the advantage of finding minimum values
116+ - :group :`$minN` has the advantage of finding minimum values
117117 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`.
119119
120120- If guaranteing a particular sort order is a requirement
121- use :pipeline :`$bottonN `.
121+ use :group :`$bottomN `.
122122
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
124124 values.
125125
126126Restrictions
@@ -129,12 +129,12 @@ Restrictions
129129Window Function and Aggregation Expression Support
130130~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
131131
132- You can use :pipeline :`$minN` as an accumulator.
132+ You can use :group :`$minN` as an accumulator.
133133
134- :pipeline :`$minN` is supported as an
134+ :group :`$minN` is supported as an
135135:ref:`aggregation expression <aggregation-expressions>`.
136136
137- :pipeline :`$minN` is supported as a
137+ :group :`$minN` is supported as a
138138:pipeline:`window operator <$setWindowFields>`.
139139
140140Memory Limit Considerations
0 commit comments