Docs Menu
Docs Home
/
MongoDB Compass
/ /

Create and Manage an Atlas Search Index

On this page

  • About this Task
  • Procedures
  • Create an Index
  • Edit an Index
  • Delete an Index
  • Learn More

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.

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.

1

From the Indexes tab, click the Create button, then click Search Index.

2
3

Compass provides templates for different kinds of search indexes. To learn more, see Search Index Definition Syntax.

4

The following example definition creates a search index that indexes all fields:

{
mappings: { dynamic: true }
}

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.

1
2
3
4
1
2
3
4

Back

Manage Indexes