[SERVER-3406] double nested array element is implicitly extracted if it is addressed through an embedded field name, otherwise it isn't Created: 11/Jul/11 Updated: 28/Jan/15 Resolved: 28/Jan/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance, Querying |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Aaron Staple | Assignee: | David Storch |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
| Comments |
| Comment by David Storch [ 28/Jan/15 ] | ||
|
I believe this is working as designed. For a more detailed description of the matching semantics at play here, see I argue that the query
should match the document
because it can be read as "the zeroth array element of a is an array containing a subdocument with b equal to 1". There are, of course, other valid matching semantics for this query, but nothing precludes this particular interpretation. |