Database Manual / Reference / Database Commands

MongoDB Search Database Commands

Note

For details on a specific command, including syntax and examples, click on the link to the command's reference page.

New in version 7.0: (Also available starting in 6.0.7)

MongoDB Search indexes let you query data in MongoDB Search. MongoDB Search indexes enable performant text search queries by mapping search terms to the documents that contain those terms.

Use the following database commands to manage MongoDB Search indexes.

Important

This command can only be run on a deployment hosted on MongoDB Atlas, and is not supported in serverless instances.

NameDescription

createSearchIndexes

Creates one or more MongoDB Search indexes on a specified collection or view.

dropSearchIndex

Deletes an existing MongoDB Search index.

updateSearchIndex

Updates an existing MongoDB Search index.