Skip to content

Commit e473868

Browse files
authored
DOCS-15029 :pipeline: -> :group: (#291)
1 parent bddfcbe commit e473868

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

source/reference/operator/aggregation/maxN.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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 considered as null.
93-
- The ``maximumThreeScores`` field is specified as :pipeline:`$maxN`
93+
- The ``maximumThreeScores`` field is specified as :group:`$maxN`
9494
with ``input : "$score"`` and returned as an array.
9595
- Since there are only 3 documents with ``scores`` ``maxN`` returns the
9696
maximum 3 ``score`` fields even though ``n = 4``.
@@ -108,19 +108,19 @@ In this example:
108108
Comparison of ``$maxN`` and ``$topN`` Accumulators
109109
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
110110

111-
Both :pipeline:`$maxN` and :pipeline:`$topN` accumulators can accomplish similar
111+
Both :group:`$maxN` and :group:`$topN` accumulators can accomplish similar
112112
results.
113113

114114
In general:
115115

116-
- :pipeline:`$maxN` has the advantage of finding maximum values
116+
- :group:`$maxN` has the advantage of finding maximum values
117117
in no particular sort order. If you want to know the
118-
maximum values for ``n`` documents use :pipeline:`$maxN`.
118+
maximum values for ``n`` documents use :group:`$maxN`.
119119

120120
- If guaranteing a particular sort order is a requirement
121-
use :pipeline:`$topN`.
121+
use :group:`$topN`.
122122

123-
- Use :pipeline:`$topN` if you don't intend on sorting on the output
123+
- Use :group:`$topN` if you don't intend on sorting on the output
124124
values.
125125

126126
Restrictions
@@ -129,12 +129,12 @@ Restrictions
129129
Window Function and Aggregation Expression Support
130130
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
131131

132-
You can use :pipeline:`$maxN` as an accumulator.
132+
You can use :group:`$maxN` as an accumulator.
133133

134-
:pipeline:`$maxN` is supported as an
134+
:group:`$maxN` is supported as an
135135
:ref:`aggregation expression <aggregation-expressions>`.
136136

137-
:pipeline:`$maxN` is supported as a
137+
:group:`$maxN` is supported as a
138138
:pipeline:`window operator <$setWindowFields>`.
139139

140140
Memory Limit Considerations

source/reference/operator/aggregation/minN.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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:
108108
Comparison 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
112112
similar results.
113113

114114
In 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

126126
Restrictions
@@ -129,12 +129,12 @@ Restrictions
129129
Window 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

140140
Memory Limit Considerations

0 commit comments

Comments
 (0)