Docs Menu

Docs HomeMongoDB 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.

←  Delete an Atlas Search IndexReturn Atlas Search Results or Metadata →
Share Feedback
© 2023 MongoDB, Inc.


  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2023 MongoDB, Inc.