Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
None
-
None
-
None
-
*Location*: https://docs.mongodb.com/manual/core/index-partial/
*User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
*Referrer*: https://docs.mongodb.com/manual/indexes/
*Screen Resolution*: 2560 x 1440
-
0.25
Description
Documentation Changes
The documentation is correct as written. However, we may want to clarify WHY the second query cannot use the index to prevent future confusion like this.
Description
Are these two examples out of order? I may misunderstand how the index works.
From the page:
For example, the following query can use the index:
db.contacts.find( { name: "xyz", email:
} )
However, the following query cannot use the index:
db.contacts.find( { name: "xyz", email:
} )
I would have thought this should be the order:
For example, the following query can use the index:
db.contacts.find( { name: "xyz", email:
} )
However, the following query cannot use the index:
db.contacts.find( { name: "xyz", email:
} )