Skip to content

Commit 1446d29

Browse files
committed
switch to refs
1 parent d20eb8b commit 1446d29

29 files changed

+82
-154
lines changed

source/connection/connection-options.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ parameters of the connection URI to specify the behavior of the client.
193193

194194
* - **authMechanism**
195195
- string
196-
- Specifies the :doc:`authentication mechanism
197-
</security/auth>` that the driver uses if a credential
196+
- Specifies the :ref:`authentication mechanism
197+
<java-authentication-mechanisms>` that the driver uses if a credential
198198
was supplied.
199199

200200
| **Default**: By default, the client picks the most secure

source/crud/builders/aggregates.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _aggregates-builders:
2+
13
===================
24
Aggregates Builders
35
===================
@@ -19,8 +21,6 @@ Aggregates Builders
1921

2022
Atlas Vector Search </builders/vector-search>
2123

22-
.. _aggregates-builders:
23-
2424
Overview
2525
--------
2626

@@ -90,7 +90,7 @@ Project
9090

9191
Use the ``project()`` method to create a :manual:`$project </reference/operator/aggregation/project/>`
9292
pipeline stage that project specified document fields. Field projection
93-
in aggregation follows the same rules as :doc:`field projection in queries </crud/read-operations/project>`.
93+
in aggregation follows the same rules as :ref:`field projection in queries </java-fundamentals-project>`.
9494

9595
.. tip::
9696

source/crud/builders/filters.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1+
.. _filters-builders:
2+
13
================
24
Filters Builders
35
================
46

5-
6-
77
.. contents:: On this page
88
:local:
99
:backlinks: none
1010
:depth: 2
1111
:class: singlecol
1212

13-
.. _filters-builders:
14-
1513
Overview
1614
--------
1715

1816
In this guide, you can learn how to use **builders** to specify
1917
**filters** for your queries in the MongoDB Java driver.
2018

2119
Builders are classes provided by the MongoDB Java driver that help you
22-
construct :ref:`BSON <bson>` objects. To learn more, see our :doc:`guide
23-
on builders </builders/>`.
20+
construct :ref:`BSON <bson>` objects. To learn more, see our :ref:`guide
21+
on builders <java-builders>`.
2422

2523
Filters are the operations MongoDB uses to limit your results to what
2624
you want to see.

source/crud/builders/indexes.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1+
.. _indexes-builders:
2+
13
================
24
Indexes Builders
35
================
46

5-
6-
77
.. contents:: On this page
88
:local:
99
:backlinks: none
1010
:depth: 2
1111
:class: singlecol
1212

13-
.. _indexes-builders:
14-
1513
Overview
1614
--------
1715

1816
In this guide, you can learn how to specify **indexes** using
19-
:doc:`builders </builders/>` in the MongoDB Java driver.
17+
:ref:`builders <java-builders>` in the MongoDB Java driver.
2018
The ``Indexes`` builder provides helper methods for constructing the
2119
following types of indexes:
2220

@@ -29,7 +27,7 @@ following types of indexes:
2927

3028
Indexes store a subset of the collection’s data set. The index stores
3129
the value of a specific field or set of fields, ordered by the value of
32-
the field. See our guide on :doc:`Indexes </fundamentals/indexes>` for
30+
the field. See our guide on :ref:`Indexes <java-fundamentals-indexes>` for
3331
examples of queries covered by indexes.
3432

3533
The ``Indexes`` class provides static factory methods for all the MongoDB index types.

source/crud/builders/projections.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1+
.. _projections-builders:
2+
13
====================
24
Projections Builders
35
====================
46

5-
6-
77
.. contents:: On this page
88
:local:
99
:backlinks: none
1010
:depth: 2
1111
:class: singlecol
1212

13-
.. _projections-builders:
14-
1513
Overview
1614
--------
1715

1816
In this guide, you can learn how to specify **projections** using
19-
:doc:`builders </builders/>` in the MongoDB Java driver.
17+
:ref:`builders <java-builders>` in the MongoDB Java driver.
2018

2119
MongoDB supports **field projection**, specifying which fields to include and exclude when returning results from a
2220
query. Projection in MongoDB follows some basic rules:

source/crud/builders/sort.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _v:
2+
13
==============
24
Sorts Builders
35
==============
@@ -15,8 +17,6 @@ Sorts Builders
1517
:depth: 2
1618
:class: singlecol
1719

18-
.. _sorts-builders:
19-
2020
Overview
2121
--------
2222

@@ -31,15 +31,15 @@ examples of sort criteria are:
3131
* Alphabetical order by first name
3232

3333
Builders are classes provided by the MongoDB Java driver that help you
34-
construct :ref:`BSON <bson>` objects. To learn more, see our :doc:`guide
35-
on builders </builders/>`.
34+
construct :ref:`BSON <bson>` objects. To learn more, see our :ref:`guide
35+
on builders <java-builders>`.
3636

3737
You should read this guide if you would like to use builders to specify sort
3838
criteria for your queries.
3939

4040
If you want to learn the fundamentals of sorting in the MongoDB Java
4141
driver, consider reading our
42-
:doc:`guide on sorting </crud/read-operations/sort/>`.
42+
:ref:`guide on sorting </java-fundamentals-sort>`.
4343

4444
.. _sorts-builders-sort-sample:
4545

@@ -63,7 +63,7 @@ criteria operators supported by MongoDB. These methods return a ``Bson`` object
6363
that you can pass to the ``sort()`` method of a ``FindIterable`` instance or to
6464
``Aggregates.sort()``. If you want to learn more about the ``Aggregates``
6565
class, see our
66-
:doc:`guide on the Aggregates builder </builders/aggregates>`.
66+
:ref:`guide on the Aggregates builder <aggregates-builders>`.
6767

6868
For more information about the classes and interfaces in this section, see the
6969
following API Documentation:

source/crud/collations.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ order as shown below:
7171
How to Specify Collations
7272
-------------------------
7373

74-
MongoDB supports collations on most :doc:`CRUD operations </fundamentals/crud>`
74+
MongoDB supports collations on most :ref:`CRUD operations <java-crud-operations>`
7575
and aggregations. For a complete list of supported operations, see the
7676
:manual:`Operations that Support Collations </reference/collation/#operations-that-support-collation>`
7777
server manual page.

source/crud/compound-operations.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ The output of the preceding code resembles the following:
101101
{"food": "pizza", "color": "green"}
102102

103103
For more information about the ``Projections`` class, see our
104-
:doc:`guide on the Projections builder </builders/projections/>`.
104+
:ref:`guide on the Projections builder <projections-builders>`.
105105

106106
For more information about the upsert operation, see our
107-
:doc:`guide on upserts </crud/write-operations/upsert/>`.
107+
:ref:`guide on upserts <java-upsert>`.
108108

109109
For more information about the methods and classes mentioned in this section,
110110
see the following API Documentation:
@@ -187,7 +187,7 @@ The output of the preceding code resembles the following:
187187
{"_id": 2, "food": "pear", "color": "yellow"}
188188

189189
For more information about the ``Sorts`` class, see our
190-
:doc:`guide on the Sorts builder </builders/sort/>`.
190+
:ref:`guide on the Sorts builder <sorts-builders>`.
191191

192192
For more information about the methods and classes mentioned in this section,
193193
see the following API Documentation:
@@ -318,10 +318,10 @@ instance:
318318
for the duration of your compound operation.
319319

320320
For information on the ``Updates`` class, see our
321-
:doc:`guide on the Updates builder </builders/updates/>`.
321+
:ref:`guide on the Updates builder <updates-builders>`.
322322

323323
For more information of the ``Filters`` class, see our
324-
:doc:`guide on the Filters builder </builders/filters/>`.
324+
:ref:`guide on the Filters builder <filters-builders>`.
325325

326326
For more information about the ``findOneAndUpdate()`` method, see
327327
the API Documentation for the `MongoCollection class <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoCollection.html#findOneAndUpdate(org.bson.conversions.Bson,java.util.List,com.mongodb.client.model.FindOneAndUpdateOptions)>`__.

source/crud/gridfs.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ see the following resources:
263263

264264
- `GridFSFindIterable <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/gridfs/GridFSFindIterable.html>`__ API Documentation
265265
- `GridFSBucket.find() <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/gridfs/GridFSBucket.html#find(org.bson.conversions.Bson)>`__ API Documentation
266-
- :doc:`Sort Results </crud/read-operations/sort>`
267-
- :doc:`Limit the Number of Returned Results </crud/read-operations/limit>`
266+
- :ref:`Sort Results <java-fundamentals-sort>`
267+
- :ref:`Limit the Number of Returned Results <java-fundamentals-limit>`
268268

269269
.. _gridfs-download-files:
270270

source/crud/query-document.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
.. _java-query:
2+
13
===============
24
Specify a Query
35
===============
46

5-
6-
77
.. contents:: On this page
88
:local:
99
:backlinks: none

0 commit comments

Comments
 (0)