> For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

# Create and Manage a MongoDB Search Index

MongoDB Compass Readonly Edition will be deprecated in a future release. To replicate the read-only behavior in a standard Compass edition, assign users [`read`](https://www.mongodb.com/docs/manual/reference/built-in-roles.md#mongodb-authrole-read) access at the database level and enable the [readOnly](https://www.mongodb.com/docs/compass/settings/read-only.md#std-label-compass-read-only) option in Compass.

**New in version 1.40.0**

You can create MongoDB Search indexes in MongoDB Compass. MongoDB Search indexes let you query data in [MongoDB Search](https://www.mongodb.com/docs/atlas/atlas-search/). MongoDB Search indexes enable performant text search queries by mapping search terms to the documents that contain those terms.

## About this Task

To create a MongoDB Search index, your deployment must be either:

- Hosted on [MongoDB Atlas](https://www.mongodb.com/docs/atlas/) and have an Atlas cluster tier of M10 or higher.

- A local deployment that is set up using the [Atlas CLI.](https://www.mongodb.com/docs/atlas/cli/stable/atlas-cli-deploy-local/)

Additionally, your deployment must run MongoDB version 7.0 or later.

## Procedures

### Create an Index

1. Open the index creation dialog

   From the [Indexes](https://www.mongodb.com/docs/compass/indexes.md#std-label-compass-indexes-tab) 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.](https://www.mongodb.com/docs/manual/reference/method/db.collection.createSearchIndex.md#std-label-search-index-definition-create-mongosh)

4. Click Create Search Index

#### Example

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

```javascript
{
   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.](https://www.mongodb.com/docs/manual/reference/method/db.collection.getSearchIndexes.md#std-label-search-index-status)

### 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

- [Manage Indexes](https://www.mongodb.com/docs/compass/indexes.md#std-label-compass-indexes)

- [Define MongoDB Search Field Mappings](https://www.mongodb.com/docs/atlas/atlas-search/define-field-mappings/)

- [Define Synonym Mappings in Your MongoDB Search Index](https://www.mongodb.com/docs/atlas/atlas-search/synonyms/)
