Skip to content

Commit 74d0791

Browse files
authored
DOCS-15018 updating all references of maxN -> maxN-array-element (#245)
* DOCS-15018 updating all references of maxN -> maxN-array-element * Add (Array Operator) to 5.2 release notes topN operators with name overlap * undo previous 5.2 edits * Adding distinct notes, reorg TOC entries, changed links on release notes * ->
1 parent 2f7374f commit 74d0791

File tree

7 files changed

+20
-8
lines changed

7 files changed

+20
-8
lines changed

source/includes/extracts-agg-operators.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ content: |
184184
* - :expression:`$firstN`
185185
186186
- Returns a specified number of elements from the beginning of an array.
187+
Distinct from the :group:`$firstN` accumulator.
187188
188189
* - :expression:`$in`
189190
@@ -207,6 +208,7 @@ content: |
207208
* - :expression:`$lastN`
208209
209210
- Returns a specified number of elements from the end of an array.
211+
Distinct from the :group:`$lastN` accumulator.
210212
211213
* - :expression:`$map`
212214
@@ -217,10 +219,12 @@ content: |
217219
* - :expression:`$maxN`
218220
219221
- Returns the ``n`` largest values in an array.
222+
Distinct from the :group:`$maxN` accumulator.
220223
221224
* - :expression:`$minN`
222225
223226
- Returns the ``n`` smallest values in an array.
227+
Distinct from the :group:`$minN` accumulator.
224228
225229
* - :expression:`$objectToArray`
226230

source/reference/operator/aggregation.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ Alphabetical Listing of Expression Operators
516516

517517
- Returns a specified number of elements from the beginning of an
518518
array.
519+
Distinct from the :group:`$firstN` accumulator.
519520

520521
.. versionadded:: 5.2
521522

@@ -654,6 +655,7 @@ Alphabetical Listing of Expression Operators
654655
* - :expression:`$lastN`
655656

656657
- Returns a specified number of elements from the end of an array.
658+
Distinct from the :group:`$lastN` accumulator.
657659

658660
.. versionadded:: 5.2
659661

@@ -725,6 +727,7 @@ Alphabetical Listing of Expression Operators
725727
* - :expression:`$maxN`
726728

727729
- Returns the ``n`` largest values in an array.
730+
Distinct from the :group:`$maxN` accumulator.
728731

729732
.. versionadded:: 5.2
730733

@@ -751,6 +754,7 @@ Alphabetical Listing of Expression Operators
751754
* - :expression:`$minN`
752755

753756
- Returns the ``n`` smallest values in an array.
757+
Distinct from the :group:`$minN` accumulator.
754758

755759
.. versionadded:: 5.2
756760

@@ -1277,8 +1281,8 @@ Alphabetical Listing of Expression Operators
12771281
/reference/operator/aggregation/expMovingAvg
12781282
/reference/operator/aggregation/filter
12791283
/reference/operator/aggregation/first
1280-
/reference/operator/aggregation/firstN
12811284
/reference/operator/aggregation/first-array-element
1285+
/reference/operator/aggregation/firstN-array-element
12821286
/reference/operator/aggregation/floor
12831287
/reference/operator/aggregation/function
12841288
/reference/operator/aggregation/getField
@@ -1297,8 +1301,8 @@ Alphabetical Listing of Expression Operators
12971301
/reference/operator/aggregation/isoWeek
12981302
/reference/operator/aggregation/isoWeekYear
12991303
/reference/operator/aggregation/last
1300-
/reference/operator/aggregation/lastN
13011304
/reference/operator/aggregation/last-array-element
1305+
/reference/operator/aggregation/lastN-array-element
13021306
/reference/operator/aggregation/let
13031307
/reference/operator/aggregation/literal
13041308
/reference/operator/aggregation/ln
@@ -1310,11 +1314,11 @@ Alphabetical Listing of Expression Operators
13101314
/reference/operator/aggregation/ltrim
13111315
/reference/operator/aggregation/map
13121316
/reference/operator/aggregation/max
1313-
/reference/operator/aggregation/maxN
1317+
/reference/operator/aggregation/maxN-array-element
13141318
/reference/operator/aggregation/mergeObjects
13151319
/reference/operator/aggregation/meta
13161320
/reference/operator/aggregation/min
1317-
/reference/operator/aggregation/minN
1321+
/reference/operator/aggregation/minN-array-element
13181322
/reference/operator/aggregation/millisecond
13191323
/reference/operator/aggregation/minute
13201324
/reference/operator/aggregation/mod

source/release-notes/5.2.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,26 @@ MongoDB 5.2 introduces the following aggregation operators:
3939
- Returns an aggregation of the bottom ``n`` elements within a group,
4040
according to the specified sort order.
4141

42-
* - :expression:`$firstN`
42+
* - :expression:`$firstN (array operator) <$firstN>`
4343
- Returns a specified number of elements from the beginning of an
4444
array.
45+
Distinct from the :group:`$firstN` accumulator.
4546

46-
* - :expression:`$lastN`
47+
* - :expression:`$lastN (array operator) <$lastN>`
4748
- Returns a specified number of elements from the end of an
4849
array.
50+
Distinct from the :group:`$lastN` accumulator.
4951

5052
* - :group:`$locf`
5153
- .. include:: /includes/fact-locf-description.rst
5254

53-
* - :expression:`$maxN`
55+
* - :expression:`$maxN (array operator) <$maxN>`
5456
- Returns the ``n`` largest values in an array.
57+
Distinct from the :group:`$maxN` accumulator.
5558

56-
* - :expression:`$minN`
59+
* - :expression:`$minN (array operator) <$minN>`
5760
- Returns the ``n`` smallest values in an array.
61+
Distinct from the :group:`$minN` accumulator.
5862

5963
* - :group:`$top`
6064
- Returns the top element within a group according to the specified

0 commit comments

Comments
 (0)