Run Atlas Search Queries in the Atlas UI¶
You can search your indexed collection through the Atlas UI. The Search Tester feature in the Search tab allows you to:
- Enter the term to search in the collection.
- View your Atlas Search query syntax, which you can then run in
mongosh
or export to a programming language.
The Search Tester returns 10 documents that are assigned a high score based on relevance.
Prerequisites¶
To use the Search Tester in the Atlas UI, you must have the following:
- An Atlas cluster running MongoDB version 4.2 or higher.
- Atlas Search index on your collection in the Atlas cluster.
Search Your Collection¶
Navigate to the Atlas Cluster Overview page.¶
Click Databases in the top-left corner of Atlas to navigate to the Database Deployments page for your project.
Click the cluster name to view cluster details.¶
Click the Search tab.¶
Click the name of the index to view the index definition.¶
Click Search Tester.¶
Search the collection.¶
- Enter the term to search in the Search query field.
- Click Search to search the collection.
View Query Syntax¶
Navigate to the Atlas Cluster Overview page.¶
Click Databases in the top-left corner of Atlas to navigate to the Database Deployments page for your project.
Click the cluster name to view cluster details.¶
Click the Search tab.¶
Click the name of the index to view the index definition.¶
Click Search Tester.¶
Search the collection.¶
- Enter the term to search in the Search query field.
- Click Search to search the collection.
Click View Query Syntax to view your query syntax in JSON format.¶
You can copy your query syntax in JSON format or export your query syntax to a programming language. See Copy or Export Query Syntax for more information.
Click Close to exit the View Query Syntax modal.¶
Copy or Export Query Syntax¶
Navigate to the Atlas Cluster Overview page.¶
Click Databases in the top-left corner of Atlas to navigate to the Database Deployments page for your project.
Click the cluster name to view cluster details.¶
Click the Search tab.¶
Click the name of the index to view the index definition.¶
Click Search Tester.¶
Search the collection.¶
- Enter the term to search in the Search query field.
- Click Search to search the collection.
Click View Query Syntax to view your query syntax in JSON format.¶
Copy or export your query syntax.¶
You can copy the query syntax in JSON format or export your query syntax to a programming language.