Skip to content

Commit e6f9354

Browse files
authored
DOCSP-26256 replaces views-related doc directives (#2092)
1 parent 2b68884 commit e6f9354

20 files changed

+39
-40
lines changed

source/includes/extracts-4.4-changes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ content: |
229229
230230
Starting in MongoDB 4.4, you can specify a :operator:`$natural`
231231
sort when running a :dbcommand:`find` operation against a
232-
:doc:`view </core/views>`.
232+
:ref:`view <views-landing-page>`.
233233
---
234234
ref: 4.4-changes-drop-in-progress-indexes
235235
content: |

source/includes/extracts-projection.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,13 @@ content: |
155155
- Using the array projection operators :projection:`$elemMatch`,
156156
:projection:`$slice`, specifies the array element(s) to include,
157157
thereby excluding those elements that do not meet the
158-
expressions. (Not available for :doc:`views </core/views>`.)
158+
expressions. (Not available for :ref:`views <views-landing-page>`.)
159159
160160
* - ``<field>: <$meta expression>``
161161
162162
- Using the :expression:`$meta` operator expression, specifies the
163163
inclusion of available :expression:`per-document metadata
164-
<$meta>`. (Not available for :doc:`views </core/views>`.)
164+
<$meta>`. (Not available for :ref:`views <views-landing-page>`.)
165165
166166
167167
* - ``<field>: <aggregation expression>``
@@ -232,7 +232,7 @@ content: |
232232
- Using the array projection operators :projection:`$elemMatch`,
233233
:projection:`$slice`, specifies the array element(s) to include,
234234
thereby excluding those elements that do not meet the
235-
expressions. (Not available for :doc:`views </core/views>`.)
235+
expressions. (Not available for :ref:`views <views-landing-page>`.)
236236
237237
* - ``<field>: <aggregation expression>``
238238

source/includes/extracts-views.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ content: |
44
---
55
ref: views-unsupported-text-search
66
content: |
7-
:doc:`Views </core/views>` do not support text search.
7+
:ref:`Views <views-landing-page>` do not support text search.
88
---
99
ref: views-unsupported-mapReduce
1010
content: |
11-
:doc:`Views </core/views>` do not support map-reduce operations.
11+
:ref:`Views <views-landing-page>` do not support map-reduce operations.
1212
---
1313
ref: views-unsupported-rename
1414
content: |
15-
You cannot rename :doc:`views </core/views>`.
15+
You cannot rename :ref:`views <views-landing-page>`.
1616
---
1717
ref: views-unsupported-geoNear
1818
content: |
19-
:doc:`Views </core/views>` do not support geoNear operations (i.e.
20-
:pipeline:`$geoNear` pipeline stage).
19+
:ref:`Views <views-landing-page>` do not support geoNear operations
20+
(specifically, the :pipeline:`$geoNear` pipeline stage).
2121
---
2222
ref: views-unsupported-projection-operators
2323
content: |
@@ -31,7 +31,7 @@ content: |
3131
---
3232
ref: _views-unsupported-projection
3333
content: |
34-
:method:`db.collection.find()` operations on :doc:`views </core/views>` do not support {{projection}} projection operator.
34+
:method:`db.collection.find()` operations on :ref:`views <views-landing-page>` do not support {{projection}} projection operator.
3535
---
3636
ref: views-unsupported-projection-$
3737
inherit:

source/reference/command/collMod.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Views
238238
.. collflag:: pipeline
239239

240240
The :ref:`aggregation pipeline <aggregation-pipeline>` that defines
241-
the :doc:`view </core/views>`.
241+
the :ref:`view <views-landing-page>`.
242242

243243
.. note::
244244

source/reference/command/create.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ Create a View
517517

518518
.. include:: /includes/extracts/views-restriction-output-to-disk.rst
519519

520-
To create a :doc:`view </core/views>` using the :dbcommand:`create`
520+
To create a :ref:`view <views-landing-page>` using the :dbcommand:`create`
521521
command, use the following syntax:
522522

523523
.. code-block:: javascript

source/reference/command/dbStats.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Output
117117

118118
.. data:: dbStats.views
119119

120-
Number of :doc:`views </core/views>` in the database.
120+
Number of :ref:`views <views-landing-page>` in the database.
121121

122122
.. data:: dbStats.objects
123123

source/reference/command/find.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ The command accepts the following fields:
8686

8787
* - ``find``
8888
- string
89-
- The name of the collection or :doc:`view </core/views>` to query.
89+
- The name of the collection or :ref:`view <views-landing-page>` to query.
9090

9191
* - ``filter``
9292
- document

source/reference/command/listCollections.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Definition
1616
.. dbcommand:: listCollections
1717

1818
Retrieve information, i.e. the name and options, about the
19-
collections and :doc:`views </core/views>` in a database. Specifically, the command returns a
19+
collections and :ref:`views <views-landing-page>` in a database. Specifically, the command returns a
2020
document that contains information with which to create a
2121
cursor to the collection information. :binary:`~bin.mongosh`
2222
provides the :method:`db.getCollectionInfos()` and the

source/reference/log-messages.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ View
14841484
~~~~
14851485

14861486
Starting in MongoDB 5.0, :ref:`log messages for slow queries
1487-
<log-message-slow-ops>` on :doc:`views </core/views>` include a
1487+
<log-message-slow-ops>` on :ref:`views <views-landing-page>` include a
14881488
``resolvedViews`` field that contains the view details:
14891489

14901490
.. code-block:: javascript

source/reference/method/db.collection.aggregate.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Definition
2020
.. include:: /includes/fact-mongosh-shell-method-alt.rst
2121

2222

23-
Calculates aggregate values for the data in a collection or a :doc:`view </core/views>`.
23+
Calculates aggregate values for the data in a collection or a :ref:`view <views-landing-page>`.
2424

2525
.. list-table::
2626
:header-rows: 1

source/reference/method/db.collection.drop.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Definition
2121
.. include:: /includes/fact-mongosh-shell-method.rst
2222

2323

24-
Removes a collection or :doc:`view </core/views>` from the database.
24+
Removes a collection or :ref:`view <views-landing-page>` from the database.
2525
The method also removes any indexes associated with the dropped
2626
collection. The method provides a wrapper around the
2727
:dbcommand:`drop` command.

source/reference/method/db.createCollection.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Definition
1515

1616
.. method:: db.createCollection(name, options)
1717

18-
Creates a new collection or :doc:`view </core/views>`. For views,
18+
Creates a new collection or :ref:`view <views-landing-page>`. For views,
1919
see also :method:`db.createView()`.
2020

2121
Because MongoDB creates a collection implicitly when the collection

source/reference/method/db.createView.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ db.createView()
1414

1515
.. include:: /includes/views/disambiguate-standard-materialized.rst
1616

17-
Creates a :doc:`view </core/views>` as the result of the applying
17+
Creates a :ref:`view <views-landing-page>` as the result of the applying
1818
the specified :ref:`aggregation pipeline <aggregation-pipeline>` to
1919
the source collection or view. Views act as read-only collections,
2020
and are computed on demand during read operations. You must create

source/reference/method/db.getCollection.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Definition
1515

1616
.. method:: db.getCollection(name)
1717

18-
Returns a :term:`collection` or a :doc:`view </core/views>` object
18+
Returns a :term:`collection` or a :ref:`view <views-landing-page>` object
1919
that is functionally equivalent to using the ``db.<collectionName>``
2020
syntax. The method is useful for a collection or a view whose name
2121
might interact with :binary:`~bin.mongosh` itself, such as names

source/reference/method/db.getCollectionNames.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Definition
1616
.. method:: db.getCollectionNames()
1717

1818
Returns an array containing the names of all collections and
19-
:doc:`views </core/views>` in the current database, or if running
19+
:ref:`views <views-landing-page>` in the current database, or if running
2020
with access control, the names of the collections according to user's
2121
privilege. For details, see :ref:`db.collectionnames-access`.
2222

source/reference/operator/aggregation/collStats.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Definition
127127

128128
* - ``latencyStats``
129129
- Statistics related to request latency for a collection or
130-
:doc:`view </core/views>`. See :ref:`latency-stats-document`
130+
:ref:`view <views-landing-page>`. See :ref:`latency-stats-document`
131131
for details on this document.
132132

133133
Only present when the ``latencyStats: {}`` option is specified.
@@ -144,7 +144,7 @@ Definition
144144

145145
Only present when the ``storageStats`` option is specified.
146146

147-
Returns an error if applied to a :doc:`view </core/views>`.
147+
Returns an error if applied to a view.
148148

149149
* - ``count``
150150
- The total number of documents in the collection. This data is
@@ -157,7 +157,7 @@ Definition
157157
clusters.
158158

159159
Only present when the ``count: {}`` option is specified. Returns
160-
an error if applied to a :doc:`view </core/views>`.
160+
an error if applied to a view.
161161

162162
* - ``queryExecStats``
163163
- Statistics related to query execution for the collection.
@@ -306,7 +306,7 @@ See :ref:`collStats-output` for a reference on this document.
306306
- :data:`collStats.indexSizes`
307307

308308
Performing ``$collStats`` with the ``storageStats`` option on a
309-
:doc:`view </core/views>` results in an error.
309+
view results in an error.
310310

311311
.. _collstat-count:
312312

source/reference/operator/aggregation/merge.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -756,14 +756,14 @@ Restrictions
756756
- An aggregation pipeline cannot use :pipeline:`$merge` to output to
757757
a time series collection.
758758

759-
* - | :doc:`View definition </core/views>`
759+
* - | :ref:`view definition <views-landing-page>`
760760
| *Separate from materialized view*
761761

762-
- :doc:`View definition </core/views>` cannot include the
763-
:pipeline:`$merge` stage. If the view definition includes nested
764-
pipeline (for example, the view definition includes
765-
:pipeline:`$facet` stage), this :pipeline:`$merge` stage
766-
restriction applies to the nested pipelines as well.
762+
- A view definition cannot include the :pipeline:`$merge` stage.
763+
If the view definition includes nested pipeline (for example,
764+
the view definition includes :pipeline:`$facet` stage), this
765+
:pipeline:`$merge` stage restriction applies to the nested
766+
pipelines as well.
767767

768768
* - :pipeline:`$lookup` stage
769769

source/reference/operator/aggregation/out.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,13 @@ Restrictions
243243
- An aggregation pipeline cannot use :pipeline:`$out` to output to
244244
a time series collection.
245245

246-
* - :doc:`View definition </core/views>`
246+
* - :ref:`view definition <views-landing-page>`
247247

248248
- The :pipeline:`$out` stage is not allowed as part of a
249-
:doc:`view definition </core/views>`. If the view definition
250-
includes nested pipeline (e.g. the view definition includes
251-
:pipeline:`$lookup` or :pipeline:`$facet` stage), this
252-
:pipeline:`$out` stage restriction applies to the nested
253-
pipelines as well.
249+
view definition. If the view definition includes nested pipeline
250+
(e.g. the view definition includes :pipeline:`$lookup` or
251+
:pipeline:`$facet` stage), this :pipeline:`$out` stage
252+
restriction applies to the nested pipelines as well.
254253

255254
* - :pipeline:`$lookup` stage
256255

source/reference/system-collections.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ each database:
115115
.. data:: <database>.system.views
116116

117117
The :data:`<database>.system.views` collection contains
118-
information about each :doc:`view </core/views>` in the database.
118+
information about each :ref:`view <views-landing-page>` in the database.
119119

120120
.. include:: /includes/5.0-changes/no-direct-write-system-views.rst

source/release-notes/4.2-compatibility.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ Aggregation
260260
``$out`` and Views
261261
``````````````````
262262

263-
The :doc:`view </core/views>` definition ``pipeline`` cannot include
263+
The :ref:`view <views-landing-page>` definition ``pipeline`` cannot include
264264
the :pipeline:`$out` stage. If you already have an existing view
265265
that includes the :pipeline:`$out` stage, you can no longer create
266266
new views from this existing view.

0 commit comments

Comments
 (0)