Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-13985

4.4 documentations contradictory on compound + hashed indexes

      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.)

            Assignee:
            joseph.dougherty@mongodb.com Joseph Dougherty
            Reporter:
            nicholas.cottrell@mongodb.com Nic Cottrell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              3 years, 15 weeks, 6 days ago