Skip to content

Commit e409e60

Browse files
authored
DOCSP-26358 replaces agg pipline doc directives (#2120)
1 parent b7569a6 commit e409e60

35 files changed

+86
-90
lines changed

source/core/aggregation-pipeline-limits.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ Number of Stages Restrictions
3232

3333
.. versionchanged:: 5.0
3434

35-
MongoDB 5.0 limits the number of :doc:`aggregation pipeline stages
36-
</reference/operator/aggregation-pipeline>` allowed in a single pipeline
37-
to 1000.
35+
MongoDB 5.0 limits the number of :ref:`aggregation pipeline stages
36+
<aggregation-pipeline-operator-reference>` allowed in a single
37+
pipeline to 1000.
3838

3939
.. _agg-memory-restrictions:
4040

source/core/read-preference.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Read Preference and Transactions
229229
Additional Considerations
230230
-------------------------
231231

232-
For :doc:`aggregation pipeline </core/aggregation-pipeline>`
232+
For :ref:`aggregation pipeline <aggregation-pipeline>`
233233
operations that include the :pipeline:`$out` or :pipeline:`$merge`
234234
stages, the pipeline runs on the :term:`primary` member regardless of
235235
read preference setting.

source/core/sharded-cluster-query-router.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ retrieves the results.
5151

5252
.. versionchanged:: 3.6
5353

54-
For :doc:`aggregation operations </core/aggregation-pipeline>` that
54+
For :ref:`aggregation operations <aggregation-pipeline>` that
5555
run on multiple shards, if the operations do not require running on
5656
the database's :term:`primary shard`, these operations may route the
5757
results back to the :binary:`~bin.mongos` where the results are then

source/core/views/create-view.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,12 @@ When you query a view:
220220

221221
- MongoDB appends the client query to the underlying pipeline and
222222
returns the results of that combined pipeline to the client. MongoDB
223-
may apply :doc:`aggregation pipeline optimizations
224-
</core/aggregation-pipeline-optimization>` to the combined pipeline.
223+
may apply :ref:`aggregation pipeline optimizations
224+
<agg-pipeline-optimization>` to the combined pipeline.
225225

226-
- The :doc:`aggregation pipeline optimizer
227-
</core/aggregation-pipeline-optimization>` reshapes the view
228-
aggregation pipeline stages to improve performance. The optimization
229-
does not change the query results.
226+
- The aggregation pipeline optimizer reshapes the view aggregation
227+
pipeline stages to improve performance. The optimization does not
228+
change the query results.
230229

231230
Resource Locking
232231
~~~~~~~~~~~~~~~~

source/includes/collection-audit-event.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ view:
44
- ``viewOn`` field with the database and collection for the view.
55

66
- ``pipeline`` field with the
7-
:doc:`aggregation pipeline </core/aggregation-pipeline>` definition
7+
:ref:`aggregation pipeline <aggregation-pipeline>` definition
88
for the view.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ Starting in MongoDB 5.0, :doc:`map-reduce </core/map-reduce>` is
22
deprecated:
33

44
- Instead of :doc:`map-reduce </core/map-reduce>`, you should use an
5-
:doc:`aggregation pipeline </core/aggregation-pipeline>`. Aggregation
5+
:ref:`aggregation pipeline <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/query-api.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ You can use the |query-api| to perform:
2828
or a MongoDB :driver:`driver </>`.
2929

3030
- **Data transformations**. Use
31-
:doc:`aggregation pipelines </core/aggregation-pipeline>` to
31+
:ref:`aggregation pipelines <aggregation-pipeline>` to
3232
reshape your data and perform calculations.
3333

3434
- **Document join support** Use :pipeline:`$lookup` and

source/reference/command.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Aggregation Commands
6262

6363
* - :dbcommand:`aggregate`
6464

65-
- Performs :doc:`aggregation tasks </core/aggregation-pipeline>` such as :pipeline:`$group` using an aggregation pipeline.
65+
- Performs :ref:`aggregation tasks <aggregation-pipeline>` such as :pipeline:`$group` using an aggregation pipeline.
6666

6767
* - :dbcommand:`count`
6868

source/reference/command/aggregate.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Definition
1515

1616
.. dbcommand:: aggregate
1717

18-
Performs aggregation operation using the :doc:`aggregation pipeline
19-
</reference/operator/aggregation-pipeline>`. The pipeline allows users
18+
Performs aggregation operation using the :ref:`aggregation pipeline
19+
<aggregation-pipeline>`. The pipeline allows users
2020
to process data from a collection or other source with a sequence of
2121
stage-based manipulations.
2222

@@ -88,8 +88,7 @@ arguments:
8888

8989
- array
9090

91-
- An array of :doc:`aggregation pipeline stages
92-
</reference/operator/aggregation-pipeline>` that process and
91+
- An array of aggregation pipeline stages that process and
9392
transform the document stream as part of the aggregation
9493
pipeline.
9594

source/reference/command/findAndModify.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ The command takes the following fields:
121121
- If passed a replacement document ``{ <field1>: <value1>, ...}``,
122122
the |operation| performs a replacement.
123123

124-
- Starting in MongoDB 4.2, if passed an :doc:`aggregation pipeline
125-
</core/aggregation-pipeline>` ``[ <stage1>, <stage2>, ... ]``,
124+
- Starting in MongoDB 4.2, if passed an :ref:`aggregation pipeline
125+
<aggregation-pipeline>` ``[ <stage1>, <stage2>, ... ]``,
126126
|operation| modifies the document per the pipeline. The pipeline
127127
can consist of the following stages:
128128

0 commit comments

Comments
 (0)