[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   

Description

https://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 changes

Impact to Other Docs

MVP (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:DOCS-13985 clarifies when compound indexes can contain a hashed index field
Branch:master
https://github.com/mongodb/docs/commit/a402645c50fd06fd64a5baaf7260cb8d02fcfb54

Comment by Ian Whalen (Inactive) [ 07/Jan/21 ]

Author:

{'username': u'andf-mongodb', 'name': u'Joseph Dougherty', 'email': u'joseph.dougherty@mongodb.com'}

Message:DOCS-13985 clarifies when compound indexes can contain a hashed index field
Branch:v5.0
https://github.com/mongodb/docs/commit/db3d5968e605954045a8cdcdc11f60b4738345e4

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.

Generated at Thu Feb 08 08:09:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.