[SERVER-2902] Index keys are not generated for numerically referenced array elements Created: 05/Apr/11  Updated: 06/Nov/19  Resolved: 01/Aug/11

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: None
Fix Version/s: 1.9.2

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: Aaron Staple
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-44393 indexu.js fails in replica_set_passth... Closed
is depended on by SERVER-3375 key generation fixes master ticket Closed
Duplicate
is duplicated by SERVER-3722 Compound index using array indexes do... Closed
is duplicated by SERVER-2598 Curious indexing behavior with arrays Closed
Operating System: ALL
Participants:

 Description   

t.save( {a:{'0':5}} );
t.save(

{a:[5]}

);
assert.eq( 2, t.count(

{'a.0':5}

) );

t.ensureIndex(

{'a.0':1}

);
assert.eq( 2, t.count(

{'a.0':5}

) ); // fails



 Comments   
Comment by auto [ 31/Jul/11 ]

Author:

{u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}

Message: SERVER-2902 test
Branch: master
https://github.com/mongodb/mongo/commit/811d98e6a0002ba235c830fe444926008b0df5c1

Comment by auto [ 31/Jul/11 ]

Author:

{u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}

Message: SERVER-2902 test
Branch: master
https://github.com/mongodb/mongo/commit/57701af677e59a3a328ba79a4bd04fa915fca146

Comment by auto [ 31/Jul/11 ]

Author:

{u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}

Message: SERVER-2902 test
Branch: master
https://github.com/mongodb/mongo/commit/3dd98984c7dc3d3299eda1fd3f387f7c720f0d3d

Comment by auto [ 05/Apr/11 ]

Author:

{u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}

Message: SERVER-393 SERVER-2902 additional tests
Branch: master
https://github.com/mongodb/mongo/commit/4c981f252999738777e9c6bf1743aea22941861c

Comment by auto [ 05/Apr/11 ]

Author:

{u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}

Message: SERVER-2902 test
Branch: master
https://github.com/mongodb/mongo/commit/bcf7d73d917d11279ae75828c63b39715a0bd3d2

Generated at Thu Feb 08 03:01:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.