[SERVER-15753] Compound index is reordered automatically when used with numerical field keys Created: 21/Oct/14 Updated: 21/Oct/14 Resolved: 21/Oct/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance |
| Affects Version/s: | 2.6.5 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Christof Rudolph | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Steps To Reproduce: | db.getCollection("test").ensureIndex( {"13":1,"12":1}) |
||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
When i create an compound index on field keys with numerical characters i cannot define the order. It gets reorderd in ascending order. |
| Comments |
| Comment by Scott Hernandez (Inactive) [ 21/Oct/14 ] |
|
This is a known javascript shell behavior: Please use another language, which supports direct ordering, to create your indexes. |