[DOCS-7945] Comment on: "manual/core/query-optimization.txt" Created: 23/May/16  Updated: 03/Nov/17  Resolved: 14/Jul/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Jonathan DeStefano
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: https://docs.mongodb.com/manual/core/query-optimization/#index-embedded-document-fields
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
Referrer: http://stackoverflow.com/questions/19559405/mongodb-querying-performance-for-over-5-million-records
Screen Resolution: 2560 x 1440


Participants:
Days since reply: 7 years, 34 weeks, 6 days ago

 Description   

In the section 'Restrictions on Indexed Fields',

First it said:
```
The

{ "user.login": 1 }

index does not cover the following query:
```

Then it said:

```
However, the query can use the

{ "user.login": 1 }

index to find matching documents.
```

Those two index are identical, I'm confused, there must be a mistake here.



 Comments   
Comment by Tao Wang [ 16/Jun/16 ]

I think the first `

{ "user.login": 1 }

` should be `

{ "user": 1}

`, I created a PR for this, please have a look.

https://github.com/mongodb/docs/pull/2648

Generated at Thu Feb 08 07:55:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.