Skip to content

Commit a3d5b8f

Browse files
Isabella Siuravindk89
authored andcommitted
DOCS-11997 Document that $expr cannot use a multikey index
1 parent 6709183 commit a3d5b8f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

source/core/index-multikey.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,11 @@ any position in the ``ratings`` array. Then, MongoDB retrieves these
202202
documents and filters for documents whose ``ratings`` array equals the
203203
query array ``[ 5, 9 ]``.
204204

205+
$expr
206+
~~~~~
207+
208+
:query:`$expr` does not support multikey indexes.
209+
205210
Examples
206211
--------
207212

source/reference/operator/query/expr.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ from the same document in a :pipeline:`$match` stage.
3838

3939
If the :pipeline:`$match` stage is part of a :pipeline:`$lookup` stage,
4040
:query:`$expr` can compare fields using ``let`` variables. See
41-
:ref:`lookup-multiple-joins` for an example.
41+
:ref:`lookup-multiple-joins` for an example.
42+
43+
:query:`$expr` does not support :ref:`multikey indexes <index-type-multikey>`.
4244

4345
Examples
4446
--------

0 commit comments

Comments
 (0)