Searching Your Collection¶
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 your
mongoshell or export to a programming language.
The Search Tester returns 10 documents that are assigned a high score based on relevance.
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¶
View Query Syntax¶
Click Close to exit the View Query Syntax modal.¶
Copy or Export Query Syntax¶
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.