Skip to content

Commit e8af332

Browse files
authored
DOCSP 32407 moving aggregation quick reference page (#5098) (#5112)
* DOCSP 32407 moving aggregation quick reference page (#5098) * DOCSP-32407 moving aggregation quick reference page * DOCSP-32407 updating redirects * DOCSP-32407 updating redirects * DOCSP-32407 updating page references * DOCSP-32407 updating page references * DOCSP-32407 updating page references * DOCSP-32407 updating page references * DOCSP-32407 changing doc to ref * DOCSP-32407 changing doc to ref * DOCSP-32407-v6.0-backport build errors
1 parent 391d7d3 commit e8af332

File tree

10 files changed

+26
-21
lines changed

10 files changed

+26
-21
lines changed

config/redirects

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2413,4 +2413,7 @@ raw: ${prefix}/${version}/applications/drivers -> ${base}/drivers/
24132413

24142414
# Fixing
24152415
raw: https://api.mongodb.com/python/current/ -> ${base}/drivers/python/
2416-
raw: https://mongodb.github.io/mongo-java-driver/ -> ${base}/drivers/java/sync/current/
2416+
raw: https://mongodb.github.io/mongo-java-driver/ -> ${base}/drivers/java/sync/current/
2417+
2418+
# DOCSP-32407
2419+
[v4.2-*]: ${prefix}/${version}/meta/aggregation-quick-reference/ -> ${prefix}/${version}/reference/aggregation-quick-reference/

source/includes/fact-use-aggregation-not-map-reduce.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ deprecated:
55
:doc:`aggregation pipeline </core/aggregation-pipeline>`. Aggregation
66
pipelines provide better performance and usability than map-reduce.
77

8-
- You can rewrite map-reduce operations using :doc:`aggregation
9-
pipeline stages </meta/aggregation-quick-reference>`, such as
8+
- You can rewrite map-reduce operations using :ref:`aggregation
9+
pipeline stages <agg-pipeline-quick-ref>`, such as
1010
:pipeline:`$group`, :pipeline:`$merge`, and others.
1111

1212
- For map-reduce operations that require custom functionality, you can

source/reference/aggregation.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Aggregation Reference
2323
Aggregation Resources
2424
---------------------
2525

26-
:doc:`/meta/aggregation-quick-reference`
26+
:ref:`agg-pipeline-quick-ref`
2727
Quick reference card for aggregation pipeline.
2828

2929
:doc:`/reference/operator/aggregation/interface`
@@ -55,7 +55,7 @@ Aggregation Resources
5555
:titlesonly:
5656
:hidden:
5757

58-
/meta/aggregation-quick-reference
58+
/reference/aggregation-quick-reference
5959
/reference/operator/aggregation/interface
6060
/reference/aggregation-commands-comparison
6161
/reference/aggregation-variables

source/reference/map-reduce-to-aggregation-pipeline.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ An :doc:`aggregation pipeline </core/aggregation-pipeline>` provides
88
better performance and usability than a :doc:`map-reduce
99
</core/map-reduce>` operation.
1010

11-
Map-reduce operations can be rewritten using :doc:`aggregation pipeline
12-
operators </meta/aggregation-quick-reference>`, such as
11+
Map-reduce operations can be rewritten using :ref:`aggregation pipeline
12+
operators <agg-pipeline-quick-ref>`, such as
1313
:pipeline:`$group`, :pipeline:`$merge`, and others.
1414

1515
For map-reduce operations that require custom functionality, MongoDB
@@ -237,8 +237,8 @@ shows an approximate translation of ``mapFunction`` using the
237237
Examples
238238
--------
239239

240-
Various map-reduce expressions can be rewritten using :doc:`aggregation
241-
pipeline operators </meta/aggregation-quick-reference>`, such as
240+
Various map-reduce expressions can be rewritten using :ref:`aggregation
241+
pipeline operators <agg-pipeline-quick-ref>`, such as
242242
:pipeline:`$group`, :pipeline:`$merge`, and others, without requiring
243243
custom functions. However, for illustrative purposes, the following
244244
examples provide both alternatives.

source/reference/operator/aggregation.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
.. ensure that the changes to this text are reflected in /reference/operator/aggregation.txt
2-
.. ensure that the changes to this text are reflected in /meta/aggregation-quick-reference.txt
3-
with slight difference. Quick Reference contains information on different expressions,
4-
such as field paths, expression objects, etc.
1+
.. Remember to update /reference/aggregation-quick-reference.txt too.
2+
3+
Quick Reference contains information on different expressions, such
4+
as field paths, and expression objects. Make appropriate edits.
5+
6+
.. _aggregation-pipeline-operators:
57

68
==============================
79
Aggregation Pipeline Operators
@@ -16,7 +18,7 @@ The aggregation pipeline operators are compatible with MongoDB Atlas and on-prem
1618

1719
.. COMMENT - this page omits the sections on Expressions in general
1820
as well as Literals, Field Paths, and Expression Objects which
19-
are in the meta/aggregation-quick-reference.txt.
21+
are in the /reference/aggregation-quick-reference.txt.
2022
This page only focuses on operators.
2123

2224
Compatibility

source/reference/operator/query/comment.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Behavior
3232
You can use the :query:`$comment` with any expression taking a query
3333
predicate, such as the query predicate in
3434
:method:`db.collection.updateOne()` or in the :pipeline:`$match` stage
35-
of the :doc:`aggregation pipeline </meta/aggregation-quick-reference>`.
35+
of the :ref:`aggregation pipeline <agg-pipeline-quick-ref>`.
3636
For an example, see :ref:`ex-comment-agg-expression`.
3737

3838
Examples

source/reference/sql-aggregation-comparison.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ terms, functions, and concepts and the corresponding MongoDB
5757
- :pipeline:`$unionWith` (Available starting in MongoDB 4.4)
5858

5959
For a list of all aggregation pipeline and expression operators, see
60-
:doc:`/meta/aggregation-quick-reference`.
60+
:ref:`agg-pipeline-quick-ref`.
6161

6262
.. seealso::
6363

@@ -445,6 +445,6 @@ the table assume the following conditions:
445445
.. seealso::
446446

447447
- :doc:`/reference/sql-comparison`
448-
- :doc:`/meta/aggregation-quick-reference`
448+
- :ref:`agg-pipeline-quick-ref`
449449
- :method:`db.collection.aggregate()`
450450

source/release-notes/4.4.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,8 +626,8 @@ write custom JavaScript expressions instead of relying on
626626
.. note::
627627

628628
Even before version 4.4, various map-reduce expressions could also
629-
be rewritten using :doc:`other aggregation pipeline operators
630-
</meta/aggregation-quick-reference>`, such as :pipeline:`$group`,
629+
be rewritten using :ref:`other aggregation pipeline operators
630+
<agg-pipeline-quick-ref>`, such as :pipeline:`$group`,
631631
:pipeline:`$merge`, etc., without requiring custom functions.
632632

633633
For more information, see

source/tutorial/map-reduce-examples.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Map-Reduce Examples
1616
better performance and usability than a :doc:`map-reduce
1717
</core/map-reduce>` operation.
1818

19-
Map-reduce operations can be rewritten using :doc:`aggregation
20-
pipeline operators </meta/aggregation-quick-reference>`, such as
19+
Map-reduce operations can be rewritten using :ref:`aggregation
20+
pipeline operators <agg-pipeline-quick-ref>`, such as
2121
:pipeline:`$group`, :pipeline:`$merge`, and others.
2222

2323
For map-reduce operations that require custom functionality, MongoDB

0 commit comments

Comments
 (0)