-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: manual
-
Labels:None
In the "Pipeline Operators and Indexes" section on the Aggregation Pipeline page (http://docs.mongodb.org/manual/core/aggregation-pipeline/), the following paragraph requires correction:
The $match, $sort, $limit, and $skip pipeline operators can take advantage of an index when they occur at the beginning of the pipeline or when they occur before the following aggregation operators: $project, $unwind, and $group.
should be changed to (changed text is in caps):
The $match, $sort, $limit, and $skip pipeline operators can take advantage of an index when they occur at the beginning of the pipeline AND when they occur before ANY OCCURRENCE OF the following aggregation operators: $project, $unwind, and $group.