Skip to content

Commit eeed23e

Browse files
(DOCSP-27076): Clarify version behavior for comparison operators in a $lookup (#2821)
* (DOCSP-27076): Remove eq from list of operators that can use a lookup index in 5.0 * remove version reference
1 parent 6be6c32 commit eeed23e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
Starting in MongoDB 5.0, the :expression:`$eq`, :expression:`$lt`,
2-
:expression:`$lte`, :expression:`$gt`, and :expression:`$gte` comparison
3-
operators placed in an :query:`$expr` operator can use an index on the
4-
``from`` collection referenced in a :pipeline:`$lookup` stage.
5-
Limitations:
1+
The :expression:`$eq`, :expression:`$lt`, :expression:`$lte`,
2+
:expression:`$gt`, and :expression:`$gte` comparison operators placed in
3+
an :query:`$expr` operator can use an index on the ``from`` collection
4+
referenced in a :pipeline:`$lookup` stage. Limitations:
65

76
- :ref:`Multikey indexes <index-type-multikey>` are not used.
87

98
- Indexes are not used for comparisons where the operand is an array or
109
the operand type is undefined.
1110

1211
- Indexes are not used for comparisons with more than one :ref:`field
13-
path <agg-quick-ref-field-paths>` operand.
12+
path <agg-quick-ref-field-paths>` operand.

0 commit comments

Comments
 (0)