Atlas Search Playground
On this page
Quickly try Atlas Search with the Atlas Search Playground. You can try different Atlas Search features by configuring search indexes and running queries without needing an Atlas account, cluster, or collection. You can also share a link to a snapshot of your Atlas Search Playground with others.
Supported Stages
The Atlas Search Playground supports a subset of aggregation pipeline stages, including:
Limitations
The Atlas Search Playground doesn't support Atlas Vector Search.
The Atlas Search Playground only supports a single collection. You can't use
$lookup
or$unionWith
to search multiple collections.The Atlas Search Playground environment does not persist. To save an environment, use the Share button to generate a snapshot URL that lasts 30 days.
The Atlas Search Playground has the following data limitations:
You can't add more than 500 documents to the Atlas Search Playground.
You can't import files larger than 100 KB.
Your total data in the Atlas Search Playground, including the collection, search index, synonyms, and queries, can't exceed 300 KB.
The Atlas Search Playground is not connected to your Atlas clusters. However, you can recreate your Atlas environment in the Atlas Search Playground by:
Exporting documents from Atlas and importing into the Atlas Search Playground.
Copying the Atlas Search index from your Atlas JSON Editor and pasting into the Index panel in the Atlas Search Playground.
Considerations
MongoDB logs your workload data for monitoring the system health and to help troubleshoot any issues in the Atlas Search Playground.
Try the Atlas Search Playground
Access the Atlas Search Playground.
Navigate to https://search-playground.mongodb.com/.
Choose a template or add your own data.
From the navigation on the left, do the following:
Click Select Template.
Choose a pre-configured environment.
Click Select.
To use your own data, import documents in JSON or CSV into the Data Source panel by clicking , then Upload File. You can also paste an array of documents directly into the Data Source panel.
Configure the Atlas Search index.
You can use the default index displayed in the Atlas Search Playground for the template as-is to run queries against the pre-loaded sample data.
To learn more about Atlas Search indexes, see Create an Atlas Search Index.
You can edit the Atlas Search index in the Index panel. The default index is a dynamic mapping of fields in the documents and will work with any collection. To create a custom index, specify which fields to index with which analyzer and as which data type.
To learn more about Atlas Search indexes, see Create an Atlas Search Index.
Run queries.
Create a search query in the Query panel. To learn more about queries, see Create and Run Atlas Search Queries.
You can also use the default query displayed in the Atlas Search Playground for the template as-is to run queries against the pre-loaded sample data with the pre-configured index.
Click Run in the upper right or press
Command + Enter/Return
.
Share your Atlas Search Playground snapshot.
Click the pencil icon beside the title to give your snapshot a unique name.
Click Share in the upper right to generate a URL that you can send to others.
Anyone can access this URL and interact with your snapshot for up to 30 days. Any changes made after generating the URL won't affect the original snapshot.
(Optional) Add synonyms.
You can use the default synonyms displayed in the Atlas Search Playground for the template as-is to run queries against the pre-loaded sample data.
To learn more about synonyms, see How to Use Synonyms with Atlas Search.
Add or edit synonyms in the Synonyms (Optional) panel using the appropriate format.
Add a synonyms mapping to the Atlas Search index, using the collection name
synonym_mappings
.
To learn more about synonyms, see How to Use Synonyms with Atlas Search.
Note
The Atlas Search Playground performance might differ from production performance.
Try the Examples in the Atlas Search Playground
You can try the following Atlas Search features in a preconfigured environment in the Atlas Search Playground.
Atlas Search Feature | Description | Examples |
---|---|---|
compound Operator | Combines two or more operators into a single query. | |
exists Operator | Tests if a path to a specified indexed field name exists in a document. | |
highlight Option | Adds fields to the result set that display search terms as they appear in the returned documents, along with any adjacent text content. |