[SERVER-110] range query breaks on nested documents after creating an index Created: 17/Jun/09  Updated: 30/Jun/09  Resolved: 17/Jun/09

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

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

Participants:

 Description   

reported by raphael marvie on the list:

>>> db.foo.save({"x": [{"y": [

{"z": 1}

,

{"z": 2}

]}]})
ObjectId('\xf9\xea\xde\xad\xa8\xc7:\xe0\x83\xf2\x04\xdd')
>>> db.foo.save({"x": [{"y": [

{"z": 12}

,

{"z": 2}

]}]})
ObjectId('eL\x1f\x8e\xfc\x1a\x06^\x0cL\xf7\xe3')
>>> db.foo.find({"x.y.z": {"$gt": 10, "$lt": 20}}).count()
1
>>> db.foo.ensure_index("x.y.z", 1)
u'x.y.z_1'
>>> db.foo.find({"x.y.z": {"$gt": 10, "$lt": 20}}).count()
0



 Comments   
Comment by Aaron Staple [ 17/Jun/09 ]

duplicate of SERVER-62

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