Create and Manage an Atlas Search Index
New in version 1.40.0.
You can create Atlas Search indexes in MongoDB Compass. Atlas Search indexes let you query data in Atlas Search. Atlas Search indexes enable performant text search queries by mapping search terms to the documents that contain those terms.
About this Task
To create an Atlas Search index, your deployment must be either:
Hosted on MongoDB Atlas and have an Atlas cluster tier of M10 or higher.
A local deployment that is set up using the Atlas CLI.
Additionally, your deployment must run MongoDB version 7.0 or later.
Procedures
Create an Index
Open the index creation dialog
From the Indexes tab, click the Create button, then click Search Index.
Specify the search index definition
Compass provides templates for different kinds of search indexes. To learn more, see Search Index Definition Syntax.
Example
The following example definition creates a search index that indexes all fields:
{ mappings: { dynamic: true } }
Results
To view the status of your created index, go to the Indexes tab and set the toggle at the top-right to Search Indexes.
The Status column indicates the status of the index. When the status is Ready, your index is ready to be used.
For more information on search index statuses, see Atlas Search Index Statuses.