Docs Home / Compass / Interact with Your Data / Manage Indexes

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

1

Open the index creation dialog

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

2

Specify a name for the index

3

Specify the search index definition

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

4

Click Create Search Index

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 MongoDB Search Index Statuses.

Edit an Index

1

From the Indexes tab, click Search Indexes.

2

Hover over the index you want to edit.

3

Click the pencil icon to open the Edit dialog.

4

Make the changes and click Save.

Delete an Index

1

From the Indexes tab, click Search Indexes.

2

Hover over the index you want to delete.

3

Click the trash icon to open the confirmation dialog.

4

Type the name of the index you want to delete and click Save.

Learn More