Following are the different kinds of Indexes in MongoDB:
- Default: It is the “_id” that MongoDB creates.
- Compound: It is useful for multiple fields.
- Multi-key: It indexes the array data.
- Single field: It sorts and indexes over a single field.
- Geospatial: It is useful for querying the location data.
- Hashed: It indexes the hashes of the multiple fields.