#MongoDB Indexes There are 5 different index types supported in MongoDB.
- Regular (B-Tree) - supports indexes on a single or multiple fields
- Geo - supports indexing on a geographical location (useful for finding locations nearby)
- Text - Allows for search engine like full text searching
- Hashed - This is used primarily used for sharding as it evenly distributes the hashes rather than clustering them.
- Time to Life - This supports expiring based on a document date field
##Create Index