Skip to content

Commit e51f56d

Browse files
committed
fix problems
(cherry picked from commit ae06ef9)
1 parent 58ae7c7 commit e51f56d

40 files changed

+56
-1913
lines changed

source/builders/indexes.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ following types of indexes:
2727
- :ref:`Hashed Indexes <index-hashed-indexes>`
2828
- :ref:`Geospatial Indexes <index-geospatial-indexes>`
2929

30-
Indexes store a subset of the collections data set. The index stores
30+
Indexes store a subset of the collection's data set. The index stores
3131
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
32+
the field. See the :ref:`java-fundamentals-indexes` to view
3333
examples of queries covered by indexes.
3434

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

source/command.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ following:
5050

5151
dbStats: {"db": "sample_mflix", "collections": 5, "views": 0, "objects": 75595, "avgObjSize": 692.1003770090614, "dataSize": 52319328, "storageSize": 29831168, "numExtents": 0, "indexes": 9, "indexSize": 14430208, "fileSize": 0, "nsSizeMB": 0, "ok": 1}
5252

53-
.. include:: /includes/legacy-redirect.rst
54-
5553
For additional information on the classes and methods mentioned on this
5654
page, see the following resources:
5755

source/connection/connect.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Use the ``MongoClients.create()`` method to construct a ``MongoClient``.
3434
As each ``MongoClient`` represents a thread-safe pool of connections to the
3535
database, most applications only require a single instance of a
3636
``MongoClient``, even across multiple threads.
37+
3738
All resource usage limits, such as max connections, apply to individual
3839
``MongoClient`` instances.
3940

source/connection/connection-troubleshooting.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ Connection Troubleshooting
5353

5454
.. _java-connection-firewall:
5555

56+
.. replacement:: connection-pools-learn-more
57+
58+
.. tip::
59+
60+
To learn more about connection pools, see
61+
:ref:`mcs-connectionpool-settings` in the Specify MongoClient
62+
Settings guide.
63+
5664
.. replacement:: authentication-error-anchor
5765

5866
.. _java-authentication-error:

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/read-operations/geo.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Examples
229229

230230
The following examples use the MongoDB Atlas sample dataset. You can learn how
231231
to set up your own free-tier Atlas cluster and how to load the sample dataset
232-
in our :doc:`quick start guide </quick-start>`.
232+
in :ref:`java-sync-quickstart` tutorial.
233233

234234
The examples use the ``theaters`` collection in the ``sample_mflix`` database
235235
from the sample dataset. The ``theaters`` collection contains a ``2dsphere`` index

source/crud/read-operations/retrieve.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ To perform an aggregate operation, call the ``aggregate()`` method on an
100100
instance of a ``MongoCollection``. This method accepts aggregation
101101
expressions to run in sequence. To perform aggregations, you can
102102
define aggregation stages that specify how to match documents, rename
103-
fields, and group values. For more information, see our
104-
:doc:`Aggregation </fundamentals/aggregation>` guide.
103+
fields, and group values. For more information, see the
104+
:ref:`java-aggregation` guide.
105105

106106
Example
107107
~~~~~~~

source/data-formats/codecs.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ sections:
3535
- :ref:`Custom Codec Example <codecs-custom-example>`
3636

3737
If you are customizing encoding and decoding logic for plain old Java objects
38-
(POJOs), read our guide on :doc:`POJO Customization </fundamentals/data-formats/pojo-customization>`.
38+
(POJOs), see the :ref:`fundamentals-pojo-customization` guide.
3939

4040
.. _codecs-codec:
4141

@@ -223,9 +223,8 @@ section of this guide.
223223

224224
When working with POJOs, consider using the ``PojoCodecProvider`` to
225225
minimize duplicate code to convert commonly-used data types and customize
226-
their behavior. See our
227-
:doc:`POJO Customization guide </fundamentals/data-formats/pojo-customization>`
228-
for more information.
226+
their behavior. See our :ref:`fundamentals-pojo-customization` guide to
227+
learn more.
229228

230229
.. _codecs-default-codec-registry:
231230

source/data-formats/document-data-format-bson.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ including:
4747
- `JsonObject <{+api+}/apidocs/bson/org/bson/json/JsonObject.html>`__ (BSON library package)
4848
- `BasicDBObject <{+api+}/apidocs/mongodb-driver-core/com/mongodb/BasicDBObject.html>`__ (Java Driver package)
4949

50-
For more information about using these object types, see our
51-
:doc:`Documents guide </fundamentals/data-formats/documents>`.
50+
For more information about using these object types, see the
51+
:ref:`fundamentals-documents` guide.
5252

5353
.. _install-bson-library:
5454

source/data-formats/document-data-format-extended-json.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ an example Extended JSON string into a ``Document`` object using the
178178

179179
Document{{_id=507f1f77bcf86cd799439011, myNumber=4794261}}
180180

181-
For more information, see our Fundamentals page
182-
on :doc:`Documents </fundamentals/data-formats/documents>`.
181+
For more information, see the :ref:`Documents
182+
<fundamentals-documents>` guide.
183183

184184
Using the BSON Library
185185
~~~~~~~~~~~~~~~~~~~~~~

source/data-formats/documents.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ frequently-used BSON and Java types:
105105

106106
The preceding mapping table shows the default mapping when working with the
107107
``Document`` class. You can customize the type mapping by specifying a
108-
custom codec. For more information about customizing mapped types, see our guide
109-
on using :doc:`Codecs </fundamentals/data-formats/codecs>`.
108+
custom codec. For more information about customizing mapped types, see the
109+
:ref:`Codecs <fundamentals-codecs>` guide.
110110

111111
In the following code snippet, we show how to instantiate and build a sample
112112
``Document`` instance representing a document containing several
@@ -176,8 +176,8 @@ The output of the preceding code resembles the following:
176176
title: Chronicle of a Death Foretold, yearPublished: 1981
177177
title: Love in the Time of Cholera, yearPublished: 1985
178178

179-
For more information about retrieving and manipulating MongoDB data, see our
180-
:doc:`CRUD guide </fundamentals/crud>`.
179+
For more information about retrieving and manipulating MongoDB data, see the
180+
:ref:`java-crud-operations` guides.
181181

182182
For more information about the methods and classes mentioned in this section,
183183
see the following API Documentation:
@@ -313,13 +313,13 @@ The ``JsonObject`` class acts as a wrapper for JSON strings.
313313
If you only want to work with JSON data, you can use ``JsonObject``
314314
to avoid unnecessary data conversion to a ``Map`` object.
315315

316-
By default, ``JsonObject`` stores :manual:`Extended JSON </reference/mongodb-extended-json/>`.
316+
By default, ``JsonObject`` stores :manual:`Extended JSON
317+
</reference/mongodb-extended-json/>`.
317318
You can customize the format of JSON in ``JsonObject`` by specifying a
318319
``JsonObjectCodec`` and passing it a ``JsonWriterSettings``
319320
object. For more information about JSON formats, see
320-
our :doc:`Extended JSON guide </fundamentals/data-formats/document-data-format-extended-json/>`.
321-
For more information about specifying codecs, see our
322-
:doc:`Codecs guide </fundamentals/data-formats/codecs>`.
321+
the :ref:`java-extended-json` guide. For more information about
322+
specifying codecs, see the :ref:`fundamentals-codecs` guide.
323323

324324
In the following code snippet, we show how to instantiate a sample ``JsonObject``
325325
instance wrapping an Extended JSON string containing different types of key value pairs:

source/data-formats/pojo-customization.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Overview
1414
--------
1515

1616
In this guide, you can learn how to define custom data conversions between
17-
BSON and POJOs in the MongoDB Java driver. In our guide on :doc:`POJOs </fundamentals/data-formats/document-data-format-pojo>`,
18-
we show how to specify a ``PojoCodecProvider`` which contains classes that
17+
BSON and POJOs in the MongoDB Java driver. The :ref:`fundamentals-pojos`
18+
guide demonstrates how to specify a ``PojoCodecProvider`` which contains classes that
1919
provide instructions on how to convert data for one or more POJO classes
2020
and their properties.
2121

@@ -35,7 +35,7 @@ enums, generics, interface types, or abstract types, see the section on
3535

3636
If you are using only the predefined behavior to convert data between
3737
BSON and POJOs, you can use the **automatic** setting for the
38-
``PojoCodecProvider`` shown in the :doc:`Document Data Formats: POJOs guide </fundamentals/data-formats/document-data-format-pojo>`.
38+
``PojoCodecProvider`` shown in the :ref:`fundamentals-pojos` guide.
3939

4040
Customize a PojoCodecProvider
4141
-----------------------------

0 commit comments

Comments
 (0)