@@ -12,7 +12,7 @@ and sorting on language strings in a locale-aware fashion.
1212
1313A driver MUST support a Collation option for each of the relevant operations in server versions >= 3.4 (maxWireVersion
14145\) and MUST throw an error if a user supplies a Collation option for the operation and the selected server has
15- maxWireVersion \ < 5 or if the user is using opcode-based unacknowledged writes.
15+ maxWireVersion < 5 or if the user is using opcode-based unacknowledged writes.
1616
1717The CRUD and Index Management specs include the collation option in descriptions of API elements where it is supported.
1818This document provides more details on the specific driver behavior required to handle the collation option.
4343Server versions earlier than 3.4 don't always throw an error if an unknown option is supplied to certain operations.
4444Because a Collation defines how documents are matched and sorted for both read and write operations, behavior
4545differences between server versions are significant. Drivers therefore MUST throw an error if a user specifies a
46- Collation and the selected server has a maxWireVersion \ < 5 or if using opcode-based unacknowledged writes.
46+ Collation and the selected server has a maxWireVersion < 5 or if using opcode-based unacknowledged writes.
4747
4848## Specification
4949
@@ -140,7 +140,7 @@ hinting an index. See the [Index Management specification](../index-management/i
140140### Require maxWireVersion 5
141141
142142Drivers MUST require the server's maxWireVersion >= 5 to support Collations. When a collation is explicitly specified
143- for a server with maxWireVersion \ < 5, the driver MUST raise an error.
143+ for a server with maxWireVersion < 5, the driver MUST raise an error.
144144
145145### Opcode-based Unacknowledged Writes
146146
@@ -160,7 +160,7 @@ db.command({
160160
161161### BulkWrite API
162162
163- If maxWireVersion \ < 5, the driver MUST inspect each BulkWrite operation model for a collation and MUST raise an error
163+ If maxWireVersion < 5, the driver MUST inspect each BulkWrite operation model for a collation and MUST raise an error
164164and MUST NOT send any operations to the server if a collation is explicitly specified on an operation. For example, the
165165user will provide BulkWrite operation models as in the following example:
166166
@@ -178,7 +178,7 @@ db.collection.bulkWrite([
178178]);
179179```
180180
181- The driver must inspect each operation for a Collation if maxWireVersion is \ < 5 and fail the entire bulkWrite if a
181+ The driver must inspect each operation for a Collation if maxWireVersion is < 5 and fail the entire bulkWrite if a
182182collation was explicitly specified. In the example above, that means even the insertOne (without Collation) MUST NOT be
183183sent.
184184
@@ -192,7 +192,7 @@ custom name must be provided for one of them. Then, the test should ensure that
192192delete_one is called with an index name.
193193
194194Drivers should also test that errors are raised in each place Collation can be provided to a API method and the selected
195- server has maxWireVersion \ < 5.
195+ server has maxWireVersion < 5.
196196
197197## Backwards Compatibility
198198
0 commit comments