From 456f6326b872127c3b41096895264d3af46b132e Mon Sep 17 00:00:00 2001 From: Isabella Siu Date: Tue, 4 Sep 2018 13:43:34 -0400 Subject: [PATCH] DOCS-11997 Document that $expr cannot use a multikey index --- source/core/index-multikey.txt | 5 +++++ source/reference/operator/query/expr.txt | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/source/core/index-multikey.txt b/source/core/index-multikey.txt index 66e3abc3e49..fe051d40637 100644 --- a/source/core/index-multikey.txt +++ b/source/core/index-multikey.txt @@ -202,6 +202,11 @@ any position in the ``ratings`` array. Then, MongoDB retrieves these documents and filters for documents whose ``ratings`` array equals the query array ``[ 5, 9 ]``. +$expr +~~~~~ + +:query:`$expr` does not support multikey indexes. + Examples -------- diff --git a/source/reference/operator/query/expr.txt b/source/reference/operator/query/expr.txt index 64274f0f803..8b0f30339b1 100644 --- a/source/reference/operator/query/expr.txt +++ b/source/reference/operator/query/expr.txt @@ -38,7 +38,9 @@ from the same document in a :pipeline:`$match` stage. If the :pipeline:`$match` stage is part of a :pipeline:`$lookup` stage, :query:`$expr` can compare fields using ``let`` variables. See -:ref:`lookup-multiple-joins` for an example. +:ref:`lookup-multiple-joins` for an example. + +:query:`$expr` does not support :ref:`multikey indexes `. Examples --------