-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
create an index with a type that is only expressed in extended json, then dump it with mongodump.
db.test.createIndex({x: NumberLong(1)})
Then try to restore it with mongorestore, and it will try to create the index spec with literally
{"$numberLong":1}as the direction (which is invalid) and fail.