Skip to content

Commit e3d8c90

Browse files
author
Chris Cho
committed
end before
1 parent 77c7a2e commit e3d8c90

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

source/fundamentals/collations.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ collection.
121121
.. literalinclude:: /code-snippets/collation/collection-collation.js
122122
:language: javascript
123123
:start-after: start collection collation
124-
:ends-before: end collection collation
124+
:end-before: end collection collation
125125

126126
Any of the operations that support collations automatically apply the collation
127127
defined on the collection. The query below searches the ``souvenirs``
@@ -130,7 +130,7 @@ collection and applies the "``fr_CA``" locale collation:
130130
.. literalinclude:: /code-snippets/collation/collection-auto-collation.js
131131
:language: javascript
132132
:start-after: start auto collation
133-
:ends-before: end auto collation
133+
:end-before: end auto collation
134134

135135
You can specify a different collation as a parameter in an operation that
136136
supports collations. The following query specifies the "``is``" Iceland locale
@@ -139,7 +139,7 @@ and ``caseFirst`` optional parameter with the value "``upper``":
139139
.. literalinclude:: /code-snippets/collation/collection-specify-collation.js
140140
:language: javascript
141141
:start-after: start specified collation
142-
:ends-before: end specified collation
142+
:end-before: end specified collation
143143

144144
Assign a Collation to an Index
145145
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -150,7 +150,7 @@ a collection with a collation set to the "``en_US``" locale.
150150
.. literalinclude:: /code-snippets/collation/index-collation.js
151151
:language: javascript
152152
:start-after: start indexcollation
153-
:ends-before: end indexcollation
153+
:end-before: end indexcollation
154154

155155
The following query uses the index we created:
156156

@@ -164,12 +164,12 @@ strength value than the collation on the index.
164164
.. literalinclude:: /code-snippets/collation/query-not-indexed-collation.js
165165
:language: javascript
166166
:start-after: start not indexed collation
167-
:ends-before: end not indexed collation
167+
:end-before: end not indexed collation
168168

169169
.. literalinclude:: /code-snippets/collation/query-index-no-collation.js
170170
:language: javascript
171171
:start-after: start index no collation
172-
:ends-before: end index no collation
172+
:end-before: end index no collation
173173

174174
Collation Query Examples
175175
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -209,7 +209,7 @@ which **does not** specify a collation:
209209
.. literalinclude:: /code-snippets/collation/findOneAndUpdate-default-order-collation.js
210210
:language: javascript
211211
:start-after: start findOneAndUpdate collation
212-
:ends-before: end findOneAndUpdate collation
212+
:end-before: end findOneAndUpdate collation
213213

214214
Since "Gunter" is the first sorted result when using a binary collation, none
215215
of the documents come lexically before and match the ``$lt`` comparison
@@ -226,7 +226,7 @@ umlauts.
226226
.. literalinclude:: /code-snippets/collation/findOneAndUpdate-collation.js
227227
:language: javascript
228228
:start-after: start findOneAndUpdate default order collation
229-
:ends-before: end findOneAndUpdate default order collation
229+
:end-before: end findOneAndUpdate default order collation
230230

231231
Since "Günter" lexically comes before "Gunter" using the
232232
``de@collation=phonebook`` collation specified in ``findOneAndUpdate()``,
@@ -258,7 +258,7 @@ lexical order.
258258
.. literalinclude:: /code-snippets/collation/findOneAndDelete-collation.js
259259
:language: javascript
260260
:start-after: start findOneAndDelete collation
261-
:ends-before: end findOneAndDelete collation
261+
:end-before: end findOneAndDelete collation
262262

263263
After you run the operation above, the collection contains the following
264264
documents:
@@ -276,7 +276,7 @@ document it finds that matches the query criteria.
276276
.. literalinclude:: /code-snippets/collation/findOneAndDelete-no-collation.js
277277
:language: javascript
278278
:start-after: start findOneAndDelete no collation
279-
:ends-before: end findOneAndDelete no collation
279+
:end-before: end findOneAndDelete no collation
280280

281281
Since all the documents contain lexical values in the ``a`` field that
282282
match the criteria (greater than the lexical value of "``100``"), the operation
@@ -307,4 +307,4 @@ the German phonebook (``de@collation=phonebook`` locale) order.
307307
.. literalinclude:: /code-snippets/collation/aggregation-collation.js
308308
:language: javascript
309309
:start-after: start aggregation collation
310-
:ends-before: end aggregation collation
310+
:end-before: end aggregation collation

0 commit comments

Comments
 (0)