Skip to content

Commit 33524ca

Browse files
authored
add note about document keys using simple collation (#6153) (#6205)
* add note about document keys using simple collation * fix link
1 parent 7b97731 commit 33524ca

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

source/includes/extracts-collation.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,13 @@ content: |-
169169
.. code-block:: javascript
170170
171171
db.myColl.find( { score: 5, category: "cafe" } )
172+
173+
.. important::
172174
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.
173179
174180
---
175181
ref: collation-index

source/reference/collation.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,15 @@ parameters and the locales they are associated with, see
5656
To specify simple binary comparison, specify ``locale`` value of
5757
``"simple"``.
5858

59-
59+
6060

6161
* - ``strength``
6262

6363
- integer
6464

65-
- Optional. The level of comparison to perform.
65+
- .. _collation-parameter-strength:
66+
67+
Optional. The level of comparison to perform.
6668
Corresponds to `ICU Comparison Levels
6769
<http://userguide.icu-project.org/collation/concepts#TOC-Comparison-Levels>`_.
6870
Possible values are:

0 commit comments

Comments
 (0)