Get Started with Atlas Search
On this page
This tutorial takes you through the steps of setting up and querying an Atlas Search index. You will use a collection with movie data from the Atlas sample data set.
Note
Feature Unavailable in Serverless Instances
Serverless instances don't support this feature at this time. To learn more, see Serverless Instance Limitations.
Prerequisites
To complete this tutorial you will need:
An Atlas cluster with MongoDB version 4.2 or higher
The sample datasets loaded into your Atlas cluster
One of the following clients to run queries on your Atlas cluster:
Note
You can run Atlas Search queries by using any
MongoDB Driver through the $search
aggregation stage. This tutorial includes examples for only
the drivers in the preceding list.
Required Access
The following table shows the modes of access that each user role supports for the specified Atlas Search actions:
Role | Atlas Search Action | Atlas UI | Atlas CLI | Atlas API [1] |
---|---|---|---|---|
| To view Atlas Search analyzers and indexes. | ✓ | ✓ | |
| To create and manage Atlas Search analyzers and indexes. | ✓ | ✓ | ✓ |
To create, view, update, and delete Atlas Search indexes. | ✓ | ✓ | ✓ |
[1] | Each role grants permission to call either a subset or the full set of Atlas Search API endpoints in the Atlas Administration API. See the Atlas Search Action column for descriptions of the API endpoints that each role grants access to. |
Next Steps
Choose one of the following ways to create your Atlas Search index:
Note
To learn more about Atlas Search, you can take Unit 1 of the
Atlas Search Course on MongoDB University. The 2.25
hour unit includes an overview of Atlas Search and lessons on how to create
Atlas Search indexes, use $search
with different operators, and
generate search facets.
Prefer to learn by watching?
Watch an overview of Atlas and Atlas Search and get started setting up Atlas Search for your data. The video demonstrates how to load sample data on your cluster, create an Atlas Search index, and run a sample query using Search Tester and Data Explorer.
Duration: 10 Minutes