@@ -9,8 +9,8 @@ development release series. While 2.3-series releases are currently
9
9
available, these versions of MongoDB are for **testing** *only*, and
10
10
are *not for production use* under any circumstances.
11
11
12
- *All* interfaces *and* functionality described in this document are
13
- subject to change before the 2.4.0 release.
12
+ .. important:: *All* interfaces *and* functionality described in this
13
+ document are subject to change before the 2.4.0 release.
14
14
15
15
This document will eventually contain the full release notes for
16
16
MongoDB 2.4; during the development cycle this document will contain
@@ -113,7 +113,8 @@ resemble:
113
113
114
114
.. code-block:: sh
115
115
116
- env KRB5_KTNAME=/opt/etc/mongodb.keytab /opt/bin/mongod --auth --dbpath /opt/data/db --logpath /opt/log/mongod.log --fork
116
+ env KRB5_KTNAME=/opt/etc/mongodb.keytab \
117
+ /opt/bin/mongod --auth --dbpath /opt/data/db --logpath /opt/log/mongod.log --fork
117
118
118
119
Replace the paths as needed for your test deployment.
119
120
@@ -124,7 +125,8 @@ associate the current connection with the Kerberos session:
124
125
125
126
.. code-block:: javascript
126
127
127
- db.getMongo().saslAuthenticate( {mechanism: "GSSAPI", principal: "<username>@<REALM>"} )
128
+ db.getMongo().saslAuthenticate( { mechanism: "GSSAPI",
129
+ principal: "<username>@<REALM>" } )
128
130
129
131
The value of the ``principal`` field *must* be the same principal that
130
132
you initialized with ``kinit``. Continue to gain privileges using the
@@ -133,7 +135,10 @@ following:
133
135
134
136
.. code-block:: javascript
135
137
136
- db.adminCommand( { acquirePrivilege: 1, resource: <dbname>, principal: <principalName>, actions: [ <actionString> ] } )
138
+ db.adminCommand( { acquirePrivilege: 1,
139
+ resource: <dbname>,
140
+ principal: <principalName>,
141
+ actions: [ <actionString> ] } )
137
142
138
143
Replace the ``<dbname>`` with the name of the database you want
139
144
privileges, replace ``<principalName>`` with the Kerberos principal
@@ -193,6 +198,11 @@ and :dbcommand:`eval` is now v8.
193
198
New Geospatial Indexes with GeoJSON and Improved Spherical Geometry
194
199
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
195
200
201
+ .. note::
202
+
203
+ In 2.3.2, the index type for Spherical Geospatial Indexes will
204
+ become ``2dsphere``
205
+
196
206
The 2.3 series adds a new type of geospatial index that supports
197
207
improved spherical queries and GeoJSON. Create the index by specifying
198
208
``s2d`` as the value of the field in the index specification, as
@@ -233,7 +243,10 @@ the following GeoJSON shapes:
233
243
234
244
.. code-block:: javascript
235
245
236
- { "type": "Polygon", "coordinates": [ [ 40, 5 ], [ 40, 6 ], [ 41, 6 ], [ 41, 5 ], [ 40, 5 ] ] }
246
+ {
247
+ "type": "Polygon",
248
+ "coordinates": [ [ 40, 5 ], [ 40, 6 ], [ 41, 6 ], [ 41, 5 ], [ 40, 5 ] ]
249
+ }
237
250
238
251
To query ``s2d`` indexes, all current geospatial :ref:`query operators
239
252
<query-selectors-geospatial>` with an additional
@@ -374,7 +387,9 @@ key. Consider the following properties when using a hashed shard key:
374
387
375
388
.. code-block:: javascript
376
389
377
- db.adminCommand( { shardCollection: "test.collection", key: { a: "hashed"}, numInitialChunks: 2001 } )
390
+ db.adminCommand( { shardCollection: "test.collection",
391
+ key: { a: "hashed"},
392
+ numInitialChunks: 2001 } )
378
393
379
394
MongoDB will only pre-split chunks in a collection when sharding
380
395
empty collections. MongoDB will not create chunk splits in a
0 commit comments