# Indexes and Text Search

An index lets MongoDB jump to the documents a query wants instead of reading every one, a unique index refuses a second document with the same value, and a text index lets $text search the words in a collection's text fields.

![Cheat sheet: Indexes and Text Search](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/5c2a8637348d4139b50cd73a6fd2292f.webp)

- Category: Node.js
- Level: Journeyman
- Tags: Index in MongoDB, mongodb, nodejs, nosql, Text Index, Unique Index
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/node-mongodb-indexes-and-text-search-cheat-sheet
