File tree 4 files changed +16
-3
lines changed
4 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ Usage Considerations
28
28
29
29
.. include:: /includes/extracts/views-unsupported-projection-$elemMatch.rst
30
30
31
+ - You cannot specify a :query:`$text` query expression in an
32
+ :projection:`$elemMatch`.
33
+
31
34
Examples
32
35
--------
33
36
Original file line number Diff line number Diff line change @@ -34,8 +34,11 @@ Definition
34
34
Behavior
35
35
--------
36
36
37
- You cannot specify a :query:`$where` expression as a query criterion
38
- for :query:`$elemMatch`.
37
+ - You cannot specify a :query:`$where` expression in an
38
+ :query:`$elemMatch`.
39
+
40
+ - You cannot specify a :query:`$text` query expression in an
41
+ :query:`$elemMatch`.
39
42
40
43
Examples
41
44
--------
Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ Restrictions
58
58
59
59
- The :query:`$text` query can not appear in :query:`$nor` expressions.
60
60
61
+ - The :query:`$text` query can not appear in :query:`$elemMatch` query
62
+ expressions or :projection:`$elemMatch` projection expressions.
63
+
61
64
- To use a :query:`$text` query in an :query:`$or` expression, all
62
65
clauses in the :query:`$or` array must be indexed.
63
66
Original file line number Diff line number Diff line change @@ -20,7 +20,11 @@ the :query:`$text` query operator in the :pipeline:`$match` stage.
20
20
Restrictions
21
21
~~~~~~~~~~~~
22
22
23
- Text search in the aggregation pipeline has the following restrictions:
23
+ For general :query:`$text` operator restrictions, see :ref:`operator
24
+ restrictions <text-query-operator-behavior>`.
25
+
26
+ In addition, text search in the aggregation pipeline has the following
27
+ restrictions:
24
28
25
29
.. include:: /includes/list-text-search-restrictions-in-agg.rst
26
30
You can’t perform that action at this time.
0 commit comments