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:

1
1

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

2

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

3
2

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

Note

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

←  Update Your Existing IndexCreate a Query →