File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,13 @@ content: |-
169
169
.. code-block:: javascript
170
170
171
171
db.myColl.find( { score: 5, category: "cafe" } )
172
+
173
+ .. important::
172
174
175
+ Matches against document keys, including embedded document keys,
176
+ use simple binary comparison. This means that a query for a key
177
+ like "foo.bár" will not match the key "foo.bar", regardless of the value you
178
+ set for the :ref:`strength <collation-parameter-strength>` parameter.
173
179
174
180
---
175
181
ref : collation-index
Original file line number Diff line number Diff line change @@ -56,13 +56,15 @@ parameters and the locales they are associated with, see
56
56
To specify simple binary comparison, specify ``locale`` value of
57
57
``"simple"``.
58
58
59
-
59
+
60
60
61
61
* - ``strength``
62
62
63
63
- integer
64
64
65
- - Optional. The level of comparison to perform.
65
+ - .. _collation-parameter-strength:
66
+
67
+ Optional. The level of comparison to perform.
66
68
Corresponds to `ICU Comparison Levels
67
69
<http://userguide.icu-project.org/collation/concepts#TOC-Comparison-Levels>`_.
68
70
Possible values are:
You can’t perform that action at this time.
0 commit comments