Quickly try MongoDB Search with the MongoDB Search Playground. You can try different MongoDB 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 MongoDB Search Playground with others.
Supported Stages
The MongoDB Search Playground supports a subset of aggregation pipeline stages, including:
Considerations
MongoDB logs your workload data for monitoring the system health and to help troubleshoot any issues in the MongoDB Search Playground.
Search Playground Limitations
The MongoDB Search Playground only supports a single collection. You can't use
$lookup
or$unionWith
to search multiple collections.The MongoDB Search Playground environment does not persist. To save an environment, use the Share button to generate a snapshot URL that lasts 30 days. The snapshot functionality is only available for the Code Sandbox tool.
The MongoDB Search Playground has the following data limitations:
You can't add more than 500 documents to the MongoDB Search Playground.
You can't import files larger than 100 KB.
Your total data in the MongoDB Search Playground, including the collection, search index, synonyms, and queries, can't exceed 300 KB.
The MongoDB Search Playground is not connected to your clusters. However, you can recreate your Atlas environment in the MongoDB Search Playground by:
Exporting documents from Atlas and importing into the MongoDB Search Playground.
Copying the MongoDB Search index from your Atlas JSON Editor and pasting into the Index panel in the MongoDB Search Playground.
Try the MongoDB Search Playground
Access the MongoDB Search Playground.
Navigate to https://search-playground.mongodb.com/.
Choose your tool.
The MongoDB Search Playground provides a JSON-only and visual way to explore MongoDB Search features.
Code Sandbox | Provides a way to add your own data, define a MongoDB Search index in
JSON format, and construct and run You can also save and share your playground with others. This allows anyone to interact with your playground snapshot for up to 30 days. Any changes made after generating the playground URL won't affect the original snapshot. |
Search Demo Builder | Provides a visual way to explore the following MongoDB Search features and query the data.
The tool automatically generates your index definition and query syntax that you can copy and use in your Atlas cluster. |
Chatbot Demo Builder | Provides a way to try a RAG chatbot that answers your questions using MongoDB Vector Search. Try the chatbot with your own data or by using the sample data. To learn more, visit Chatbot Demo Builder. |
Sample data is pre-loaded by default in the Code Sandbox and Search Demo Builder. Alternatively, you can upload your own data.
Note
The MongoDB Search Playground performance might differ from production performance.
Try the Examples in the MongoDB Search Playground
You can try the following MongoDB Search features in a preconfigured environment in the MongoDB Search Playground.
MongoDB 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. |