[DOCS-13985] 4.4 documentations contradictory on compound + hashed indexes Created: 16/Nov/20 Updated: 30/Oct/23 Due: 08/Jan/21 Resolved: 04/Jan/21 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Nic Cottrell | Assignee: | Joseph Dougherty |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 3 years, 4 weeks, 6 days ago |
| Epic Link: | DOCSP-11701 |
| Description |
Descriptionhttps://docs.mongodb.com/manual/core/index-compound/ says: > You may not create compound indexes that have hashed index type. You will receive an error if you attempt to create a compound index that includes a hashed index field. https://docs.mongodb.com/manual/core/index-hashed/#create-a-compound-hashed-index says > Starting with MongoDB 4.4, MongoDB supports creating compound indexes that include a single hashed field. — I think the https://docs.mongodb.com/manual/core/index-compound/ page note should be changed to something like: > In MongoDB 4.2 and earlier, you could not create compound indexes that have hashed index type. From MongoDB 4.4, you can create a compound index with up to one hashed field. See compound hashed indexes. Scope of changesImpact to Other DocsMVP (Work and Date)Resources (Scope or Design Docs, Invision, etc.) |
| Comments |
| Comment by Ian Whalen (Inactive) [ 07/Jan/21 ] |
|
Author: {'username': u'andf-mongodb', 'name': u'Joseph Dougherty', 'email': u'joseph.dougherty@mongodb.com'}Message: |
| Comment by Ian Whalen (Inactive) [ 07/Jan/21 ] |
|
Author: {'username': u'andf-mongodb', 'name': u'Joseph Dougherty', 'email': u'joseph.dougherty@mongodb.com'}Message: |
| Comment by Asya Kamsky [ 16/Nov/20 ] |
|
How about if it says instead You may not create compound indexes that have more than one hashed field. You will receive an error if you attempt to create a compound index that includes two or more hashed index fields. Prior to 4.4 no hashed fields were allowed in a compound index. |