Details
-
Improvement
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
None
-
Query
Description
Allowing the key field to be an array will remove the ordering issues in many languages, and the shell.
Example:
db.a.ensureIndex([{field1:1}, {field2:1}])
|
db.a.runCommand("createIndexes", {indexes:[{ns:..., key:[{field1:1}, {field2:1}]}]})
|
Attachments
Issue Links
- is related to
-
SERVER-15753 Compound index is reordered automatically when used with numerical field keys
-
- Closed
-
-
MONGOSH-1037 Numeric field are sorted to the front (js shell)
-
- Closed
-
-
SERVER-1627 add createIndexes command
-
- Closed
-
- related to
-
SERVER-21888 Provide operation to determine if an index exists
-
- Closed
-