Docs Menu

Docs HomeLaunch & Manage MongoDBMongoDB Atlas

Create and Run Atlas Search Queries

On this page

  • Construct your Atlas Search query.
  • Run your Atlas Search query.

After you create an Atlas Search index on the collection for all fields that you want to search, you can create and run an Atlas Search query by performing the following steps:


Select a tab corresponding to the aggregation pipeline stage you want to use:


Select one or more operators or collectors to perform a specific search on your collection.


Review your Atlas Search query syntax and then run it in your application using a driver, mongosh, Compass, or the Search Tester.


If you are experiencing issues with your Atlas Search $search queries, see Troubleshoot Atlas Search Errors.

← Update Your Existing Index