File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,22 @@ operation that resembles the following prototype:
3939
4040.. include:: /includes/fact-index-specification-field-value.rst
4141
42- .. important:: You may not create compound indexes that have
43- ``hashed`` index type. You will receive an error if you attempt to
44- create a compound index that includes :doc:`a hashed index
45- field </core/index-hashed>`.
42+ .. important::
43+
44+ Starting in MongoDB 4.4:
45+
46+ - Compound indexes may contain **a single** :doc:`hashed index field
47+ </core/index-hashed>`.
48+ - You will receive an error if you attempt to create a compound index
49+ that contains more than one :doc:`hashed index field
50+ </core/index-hashed>`.
51+
52+ In MongoDB 4.2 or earlier:
53+
54+ - Compound indexes may **not** contain a :doc:`hashed index field
55+ </core/index-hashed>`.
56+ - You will receive an error if you attempt to create a compound index
57+ that contains a :doc:`hashed index field </core/index-hashed>`.
4658
4759Consider a collection named ``products`` that holds documents that
4860resemble the following document:
You can’t perform that action at this time.
0 commit comments