-
Type: Bug
-
Resolution: Fixed
-
Priority: Critical - P2
-
Affects Version/s: None
-
Labels:None
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.