Skip to content

Commit cc860b5

Browse files
committed
DOCSP-26498 - Standardize MongoDB Server Naming (#399)
(cherry picked from commit a460fec)
1 parent 679b6e5 commit cc860b5

File tree

18 files changed

+76
-65
lines changed

18 files changed

+76
-65
lines changed

snooty.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ toc_landing_pages = [
1111
sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/"
1212

1313
[constants]
14+
<<<<<<< HEAD
1415
version = 4.3
1516
full-version = "{+version+}.4"
16-
mdb-server = "MongoDB server"
17+
mdb-server = "MongoDB Server"
1718

1819
package-name-org = "mongodb-org"
1920
api = "https://mongodb.github.io/mongo-java-driver/{+version+}"

source/fundamentals/auth.txt

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Overview
1919

2020
In this guide, you can learn how to authenticate with MongoDB using each
2121
**authentication mechanism** available in the MongoDB Community Edition.
22-
Authentication mechanisms are processes by which the driver and server
22+
Authentication mechanisms are processes by which the driver and MongoDB deployment
2323
confirm identity and establish trust to ensure security.
2424

2525
The mechanisms that you can use with the latest version of MongoDB Community
@@ -51,23 +51,24 @@ Default
5151
~~~~~~~
5252

5353
The default authentication mechanism setting uses one of the following
54-
authentication mechanisms depending on what your MongoDB server supports:
54+
authentication mechanisms depending on what your version of {+mdb-server+}
55+
supports:
5556

5657
#. ``SCRAM-SHA-256``
5758
#. ``SCRAM-SHA-1``
5859
#. ``MONGODB-CR``
5960

6061
Server versions 3.6 and earlier use ``MONGODB-CR`` as the default
61-
mechanism. Newer versions of the server use one of the mechanisms for
62+
mechanism. Newer versions of {+mdb-server+} use one of the mechanisms for
6263
which they advertise support.
6364

6465
The following code snippets show how to specify the authentication mechanism,
6566
using the following placeholders:
6667

6768
* ``username`` - your MongoDB username
6869
* ``password`` - your MongoDB user's password
69-
* ``hostname`` - network address of your MongoDB server, accessible by your client
70-
* ``port`` - port number of your MongoDB server
70+
* ``hostname`` - network address of your MongoDB deployment, accessible by your client
71+
* ``port`` - port number of your MongoDB deployment
7172
* ``authenticationDb`` - MongoDB database that contains your user's
7273
authentication data. If you omit this parameter, the driver uses the
7374
default value ``admin``.
@@ -102,7 +103,8 @@ mechanism:
102103

103104
For more information on the challenge-response (CR) and salted
104105
challenge-response authentication mechanisms (SCRAM) that MongoDB supports,
105-
see the :manual:`SCRAM </core/security-scram/>` section of the server manual.
106+
see the :manual:`SCRAM </core/security-scram/>` section of the {+mdb-server+}
107+
manual.
106108

107109
.. _scram-sha-256-auth-mechanism:
108110

@@ -123,8 +125,8 @@ using the following placeholders:
123125

124126
* ``username`` - your MongoDB username.
125127
* ``password`` - your MongoDB user's password.
126-
* ``hostname`` - network address of your MongoDB server, accessible by your client.
127-
* ``port`` - port number of your MongoDB server.
128+
* ``hostname`` - network address of your MongoDB deployment, accessible by your client.
129+
* ``port`` - port number of your MongoDB deployment.
128130
* ``authenticationDb`` - MongoDB database that contains your user's
129131
authentication data. If you omit this parameter, the driver uses the
130132
default value ``admin``.
@@ -175,8 +177,8 @@ using the following placeholders:
175177

176178
* ``username`` - your MongoDB username.
177179
* ``password`` - your MongoDB user's password.
178-
* ``hostname`` - network address of your MongoDB server, accessible by your client.
179-
* ``port`` - port number of your MongoDB server.
180+
* ``hostname`` - network address of your MongoDB deployment, accessible by your client.
181+
* ``port`` - port number of your MongoDB deployment.
180182
* ``authenticationDb`` - MongoDB database that contains your user's
181183
authentication data. If you omit this parameter, the driver uses the
182184
default value ``admin``.
@@ -357,8 +359,8 @@ the subject name of the client certificate.
357359
The following code snippets show how to specify the authentication mechanism,
358360
using the following placeholders:
359361

360-
* ``hostname`` - network address of your MongoDB server, accessible by your client.
361-
* ``port`` - port number of your MongoDB server.
362+
* ``hostname`` - network address of your MongoDB deployment, accessible by your client.
363+
* ``port`` - port number of your MongoDB deployment.
362364
* ``authenticationDb`` - MongoDB database that contains your user's
363365
authentication data. If you omit this parameter, the driver uses the
364366
default value ``admin``.

source/fundamentals/connection/connect.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ method. Chain the ``applyConnectionString()`` method to the builder to specify y
9797
connection URI.
9898

9999
You can set the {+stable-api+} version client option to avoid
100-
breaking changes when you upgrade to a new server version. To
100+
breaking changes when you upgrade to a new version of {+mdb-server+}. To
101101
learn more about the {+stable-api+} feature, see the :ref:`{+stable-api+} page
102102
<stable-api-java>`.
103103

@@ -114,18 +114,18 @@ deployment on Atlas and verify that the connection is successful:
114114
Other Ways to Connect to MongoDB
115115
--------------------------------
116116

117-
If you are connecting to a single MongoDB server instance or replica set
117+
If you are connecting to a single MongoDB deployment or replica set
118118
that is not hosted on Atlas, see the following sections to find out how to
119119
connect.
120120

121121
.. _connect-local-java-driver:
122122

123-
Connect to a MongoDB Server on Your Local Machine
124-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
123+
Connect to a MongoDB Deployment on Your Local Machine
124+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
125125

126126
.. include:: /includes/fundamentals/localhost-connection.rst
127127

128-
To test whether you can connect to your server, replace the connection
128+
To test whether you can connect to your deployment, replace the connection
129129
string in the :ref:`Connect to MongoDB Atlas <connect-atlas-java-driver>` code
130130
example and run it.
131131

source/fundamentals/connection/mongoclientsettings.txt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,17 +220,22 @@ settings to modify the driver's behavior:
220220
* - ``applySettings()``
221221
- Uses the cluster settings specified in a ``ClusterSettings`` object.
222222

223-
* - ``hosts()``
224-
- Sets all the specified locations of a Mongo server.
223+
* - ``hosts()``
224+
- Sets all the specified locations of a Mongo deployment.
225225

226226
* - ``localThreshold()``
227227
- | Sets the amount of time that a server’s round trip can take and still
228228
be eligible for server selection.
229229
|
230230
| **Default**: ``15 milliseconds``
231231

232+
<<<<<<< HEAD
232233
* - ``mode​()``
233234
- Sets how to connect to a MongoDB server.
235+
=======
236+
* - ``mode()``
237+
- Sets how to connect to a MongoDB deployment.
238+
>>>>>>> a460fec (DOCSP-26498 - Standardize MongoDB Server Naming (#399))
234239

235240
* - ``requiredClusterType()``
236241
- Sets the type of cluster required for the cluster.
@@ -377,7 +382,7 @@ Server Settings
377382

378383
Chain the `applyToServerSettings() <{+api+}/apidocs/mongodb-driver-core/com/mongodb/MongoClientSettings.Builder.html#applyToServerSettings(com.mongodb.Block)>`__
379384
method to modify the driver's behavior when monitoring each MongoDB
380-
server.
385+
deployment.
381386

382387
The following table describes the methods you can chain to your
383388
settings to modify the driver's behavior:
@@ -414,7 +419,7 @@ settings to modify the driver's behavior:
414419
Example
415420
~~~~~~~
416421

417-
This example specifies the following driver behavior in a MongoDB server:
422+
This example specifies the following driver behavior in a MongoDB deployment:
418423

419424
- The minimum interval for server monitoring checks to be at least
420425
``700 MILLISECONDS``
@@ -434,7 +439,7 @@ Socket Settings
434439

435440
Chain the `applyToSocketSettings() <{+api+}/apidocs/mongodb-driver-core/com/mongodb/MongoClientSettings.Builder.html#applyToSocketSettings(com.mongodb.Block)>`__
436441
method to modify the driver's behavior when connecting and communicating
437-
with your MongoDB server.
442+
with your MongoDB deployment.
438443

439444
The following table describes all the methods you can chain to your settings
440445
to modify the driver's behavior:

source/fundamentals/connection/tls.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ genuine and secure from tampering by third parties.
144144

145145
An application that initiates TLS/SSL requests needs to set two JVM system
146146
properties to ensure that the client presents a TLS/SSL certificate to
147-
the MongoDB server:
147+
the MongoDB deployment:
148148

149149
- ``javax.net.ssl.keyStore``: the path to a key store containing the client's
150150
TLS/SSL certificates

source/fundamentals/crud/read-operations/cursor.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ to see by setting parameters through methods.
4141
Terminal Methods
4242
----------------
4343

44-
Terminal methods execute an operation on the MongoDB server after
44+
Terminal methods execute an operation on the MongoDB deployment after
4545
configuring all parameters of an ``Iterable`` instance controlling the
4646
operation.
4747

@@ -196,9 +196,9 @@ Cursor Cleanup
196196
Close
197197
~~~~~
198198

199-
Use the ``close()`` method in a finally block to free up a cursor's
199+
Use the ``close()`` method in a ``finally`` block to free up a cursor's
200200
consumption of resources in both the client application and the MongoDB
201-
server:
201+
deployment:
202202

203203
.. literalinclude:: /includes/fundamentals/code-snippets/Cursor.java
204204
:language: java
@@ -211,7 +211,7 @@ Try with Resources Statement
211211

212212
Use a try-with-resources statement
213213
to automatically free up a cursor's consumption of resources in both the
214-
client application and the MongoDB server:
214+
client application and the MongoDB deployment:
215215

216216
.. literalinclude:: /includes/fundamentals/code-snippets/Cursor.java
217217
:language: java

source/fundamentals/crud/read-operations/geo.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ For more information on the ``Indexes`` builder, see our
134134
:doc:`guide on the Indexes builder </fundamentals/builders/indexes>`.
135135

136136
For more information on legacy coordinate pairs, see the
137-
:manual:`MongoDB server manual page on legacy coordinate pairs </geospatial-queries/#legacy-coordinate-pairs>`.
137+
:manual:`{+mdb-server+} manual page on legacy coordinate pairs </geospatial-queries/#legacy-coordinate-pairs>`.
138138

139139
.. external resource
140140

@@ -301,6 +301,6 @@ For more information on the ``$geoWithin`` operator, see the
301301
.. external resource
302302

303303
For more information on the operators you can use in your query, see the
304-
:manual:`MongoDB server manual page on geospatial query operators </geospatial-queries/index.html>`
304+
:manual:`{+mdb-server+} manual page on geospatial query operators </geospatial-queries/index.html>`
305305

306306
.. external resource

source/fundamentals/crud/read-operations/retrieve.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ After the owner runs the aggregation, they find that "green" is the most
134134
purchased color.
135135

136136
For more information on how to construct an aggregation pipeline, see
137-
the MongoDB server manual page on :manual:`Aggregation </aggregation>`.
137+
the {+mdb-server+} manual page on :manual:`Aggregation </aggregation>`.
138138

139139
.. _retrieve-watch:
140140

source/fundamentals/crud/write-operations/change-a-document.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ documents match.
128128

129129
The ``updateOne()`` and ``updateMany()`` methods cannot make changes
130130
to a document that violate unique index constraints on the
131-
collection. See the MongoDB server manual for more information on
132-
:manual:`unique indexes </core/index-unique/>`.
131+
collection. For more information about constraints on unique indexes,
132+
see :manual:`Unique Indexes </core/index-unique/>` in the
133+
{+mdb-server+} manual.
133134

134135
.. _replace-operation:
135136

@@ -205,5 +206,8 @@ the ``replaceOne()`` method, it replaces the first result.
205206
.. important::
206207

207208
The ``replaceOne()`` method cannot make changes to a document that
208-
violate unique index constraints on the collection. See the MongoDB
209-
server manual for more information on :manual:`unique indexes </core/index-unique/>`.
209+
violate unique index constraints on the collection.
210+
For more information about constraints on unique indexes,
211+
see :manual:`Unique Indexes </core/index-unique/>` in the
212+
{+mdb-server+} manual.
213+

source/fundamentals/enterprise-auth.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ The following code snippets show how to specify the authentication mechanism,
5959
using the following placeholders:
6060

6161
* ``username`` - your URL-encoded principal name, e.g. "username%40REALM.ME"
62-
* ``hostname`` - network address of your MongoDB server, accessible by your client
63-
* ``port`` - port number of your MongoDB server
62+
* ``hostname`` - network address of your MongoDB deployment, accessible by your client
63+
* ``port`` - port number of your MongoDB deployment
6464

6565
Select the :guilabel:`Connection String` or the :guilabel:`MongoCredential`
6666
tab below for instructions and sample code for specifying this authentication
@@ -242,8 +242,8 @@ using the following placeholders:
242242

243243
* ``username`` - your LDAP username
244244
* ``password`` - your LDAP user's password
245-
* ``hostname`` - network address of your MongoDB server, accessible by your client
246-
* ``port`` - port number of your MongoDB server
245+
* ``hostname`` - network address of your MongoDB deployment, accessible by your client
246+
* ``port`` - port number of your MongoDB deployment
247247

248248
Select the :guilabel:`Connection String` or the :guilabel:`MongoCredential`
249249
tab below for instructions and sample code for specifying this authentication

source/fundamentals/indexes.txt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ Since MongoDB supports dynamic schemas, applications can query against fields wh
8484
are arbitrary. MongoDB 4.2 introduced :manual:`wildcard indexes </core/index-wildcard/>` to help support these queries.
8585
Wildcard indexes are not designed to replace workload-based index planning.
8686

87-
For more information on designing your data model and choosing indexes appropriate for your application, see the MongoDB
88-
server documentation on :manual:`Indexing Strategies </applications/indexes>` and
87+
For more information on designing your data model and choosing indexes appropriate for your application, see the {+mdb-server+}
8988
:manual:`Data Modeling and Indexes </core/data-model-operations/#indexes>`.
9089

9190
Index Types
@@ -165,7 +164,7 @@ The following is an example of a query that would be covered by the index create
165164

166165
.. common-content-begin
167166

168-
See the MongoDB server manual section on :manual:`single field indexes </core/index-single>` for more information.
167+
For more information, see :manual:`Single Field Indexes </core/index-single>` in the {+mdb-server+} manual.
169168

170169
Compound Indexes
171170
++++++++++++++++
@@ -200,7 +199,7 @@ The following is an example of a query that would be covered by the index create
200199

201200
.. common-content-begin
202201

203-
See the MongoDB server manual section on :manual:`Compound indexes </core/index-compound>` for more information.
202+
For more information, see :manual:`Compound Indexes </core/index-compound>` in the {+mdb-server+} manual.
204203

205204
Multikey Indexes (Indexes on Array Fields)
206205
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -306,7 +305,7 @@ the geospatial data for inclusion, intersection, and proximity. For more informa
306305
:manual:`Geospatial Queries </geospatial-queries/>`.
307306

308307
To create a ``2dsphere`` index, you must specify a field that contains only **GeoJSON objects**. For more details on this
309-
type, see the MongoDB server manual page on :manual:`GeoJSON objects </reference/geojson>`.
308+
type, see the {+mdb-server+} manual page on :manual:`GeoJSON objects </reference/geojson>`.
310309

311310
The ``location.geo`` field in the following sample document from the ``theaters`` collection in the ``sample_mflix``
312311
database is a GeoJSON Point object that describes the coordinates of the theater:
@@ -360,8 +359,8 @@ The following is an example of a geospatial query using the "location.geo" index
360359
.. common-content-begin
361360

362361
MongoDB also supports ``2d`` indexes for calculating distances on a Euclidean plane and for working with the "legacy
363-
coordinate pairs" syntax used in MongoDB 2.2 and earlier. See the :manual:`Geospatial Queries page </geospatial-queries>`
364-
in the MongoDB server manual for more information.
362+
coordinate pairs" syntax used in MongoDB 2.2 and earlier. For more information, see the :manual:`Geospatial Queries page </geospatial-queries>`
363+
in the {+mdb-server+} manual.
365364

366365
Unique Indexes
367366
~~~~~~~~~~~~~~
@@ -393,7 +392,7 @@ The following example creates a unique, descending index on the ``theaterId`` fi
393392

394393
E11000 duplicate key error index
395394

396-
Refer to the :manual:`Unique Indexes page </core/index-unique>` in the MongoDB server manual for more information.
395+
For more information, see the :manual:`Unique Indexes</core/index-unique>` page in the {+mdb-server+} manual.
397396

398397
.. driver-content-end
399398

source/fundamentals/logging.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,11 @@ and the logging events they correspond to.
376376

377377
* ``org.mongodb.driver.authenticator`` : authentication
378378
* ``org.mongodb.driver.client`` : events related to ``MongoClient`` instances
379-
* ``org.mongodb.driver.cluster`` : monitoring of MongoDB servers
379+
* ``org.mongodb.driver.cluster`` : monitoring of MongoDB deployments
380380
* ``org.mongodb.driver.connection`` : connections and connection pools
381381
* ``org.mongodb.driver.connection.tls`` : TLS/SSL
382382
* ``org.mongodb.driver.operation`` : operations, including logging related to automatic retries
383-
* ``org.mongodb.driver.protocol`` : commands sent to and replies received from MongoDB servers
383+
* ``org.mongodb.driver.protocol`` : commands sent to and replies received from MongoDB deployments
384384
* ``org.mongodb.driver.uri`` : connection string parsing
385385
* ``org.mongodb.driver.management`` : JMX (Java Management Extensions)
386386

source/fundamentals/stable-api.txt

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

1616
.. note::
1717

18-
The {+stable-api+} feature requires MongoDB Server 5.0 or later.
18+
The {+stable-api+} feature requires {+mdb-server+} 5.0 or later.
1919

2020
You should only use the {+stable-api+} feature if all the MongoDB
2121
servers you are connecting to support this feature.
@@ -80,9 +80,9 @@ following operations:
8080

8181
.. warning::
8282

83-
If you specify an API version and connect to a MongoDB server that does
83+
If you specify an API version and connect to a MongoDB deployment that does
8484
not support the {+stable-api+}, your application may raise an exception when
85-
executing a command on your MongoDB server. If you use a ``MongoClient``
85+
executing a command on your MongoDB deployment. If you use a ``MongoClient``
8686
that specifies the API version to query a server that does not support it,
8787
your query could fail with an exception message that includes the
8888
following text:

0 commit comments

Comments
 (0)