@@ -121,7 +121,7 @@ collection.
121
121
.. literalinclude:: /code-snippets/collation/collection-collation.js
122
122
:language: javascript
123
123
:start-after: start collection collation
124
- :ends -before: end collection collation
124
+ :end -before: end collection collation
125
125
126
126
Any of the operations that support collations automatically apply the collation
127
127
defined on the collection. The query below searches the ``souvenirs``
@@ -130,7 +130,7 @@ collection and applies the "``fr_CA``" locale collation:
130
130
.. literalinclude:: /code-snippets/collation/collection-auto-collation.js
131
131
:language: javascript
132
132
:start-after: start auto collation
133
- :ends -before: end auto collation
133
+ :end -before: end auto collation
134
134
135
135
You can specify a different collation as a parameter in an operation that
136
136
supports collations. The following query specifies the "``is``" Iceland locale
@@ -139,7 +139,7 @@ and ``caseFirst`` optional parameter with the value "``upper``":
139
139
.. literalinclude:: /code-snippets/collation/collection-specify-collation.js
140
140
:language: javascript
141
141
:start-after: start specified collation
142
- :ends -before: end specified collation
142
+ :end -before: end specified collation
143
143
144
144
Assign a Collation to an Index
145
145
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -150,7 +150,7 @@ a collection with a collation set to the "``en_US``" locale.
150
150
.. literalinclude:: /code-snippets/collation/index-collation.js
151
151
:language: javascript
152
152
:start-after: start indexcollation
153
- :ends -before: end indexcollation
153
+ :end -before: end indexcollation
154
154
155
155
The following query uses the index we created:
156
156
@@ -164,12 +164,12 @@ strength value than the collation on the index.
164
164
.. literalinclude:: /code-snippets/collation/query-not-indexed-collation.js
165
165
:language: javascript
166
166
:start-after: start not indexed collation
167
- :ends -before: end not indexed collation
167
+ :end -before: end not indexed collation
168
168
169
169
.. literalinclude:: /code-snippets/collation/query-index-no-collation.js
170
170
:language: javascript
171
171
:start-after: start index no collation
172
- :ends -before: end index no collation
172
+ :end -before: end index no collation
173
173
174
174
Collation Query Examples
175
175
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -209,7 +209,7 @@ which **does not** specify a collation:
209
209
.. literalinclude:: /code-snippets/collation/findOneAndUpdate-default-order-collation.js
210
210
:language: javascript
211
211
:start-after: start findOneAndUpdate collation
212
- :ends -before: end findOneAndUpdate collation
212
+ :end -before: end findOneAndUpdate collation
213
213
214
214
Since "Gunter" is the first sorted result when using a binary collation, none
215
215
of the documents come lexically before and match the ``$lt`` comparison
@@ -226,7 +226,7 @@ umlauts.
226
226
.. literalinclude:: /code-snippets/collation/findOneAndUpdate-collation.js
227
227
:language: javascript
228
228
:start-after: start findOneAndUpdate default order collation
229
- :ends -before: end findOneAndUpdate default order collation
229
+ :end -before: end findOneAndUpdate default order collation
230
230
231
231
Since "Günter" lexically comes before "Gunter" using the
232
232
``de@collation=phonebook`` collation specified in ``findOneAndUpdate()``,
@@ -258,7 +258,7 @@ lexical order.
258
258
.. literalinclude:: /code-snippets/collation/findOneAndDelete-collation.js
259
259
:language: javascript
260
260
:start-after: start findOneAndDelete collation
261
- :ends -before: end findOneAndDelete collation
261
+ :end -before: end findOneAndDelete collation
262
262
263
263
After you run the operation above, the collection contains the following
264
264
documents:
@@ -276,7 +276,7 @@ document it finds that matches the query criteria.
276
276
.. literalinclude:: /code-snippets/collation/findOneAndDelete-no-collation.js
277
277
:language: javascript
278
278
:start-after: start findOneAndDelete no collation
279
- :ends -before: end findOneAndDelete no collation
279
+ :end -before: end findOneAndDelete no collation
280
280
281
281
Since all the documents contain lexical values in the ``a`` field that
282
282
match the criteria (greater than the lexical value of "``100``"), the operation
@@ -307,4 +307,4 @@ the German phonebook (``de@collation=phonebook`` locale) order.
307
307
.. literalinclude:: /code-snippets/collation/aggregation-collation.js
308
308
:language: javascript
309
309
:start-after: start aggregation collation
310
- :ends -before: end aggregation collation
310
+ :end -before: end aggregation collation
0 commit comments