You can construct Atlas Search queries using the $search aggregation pipeline stage. Atlas Search provides
operators that you can use to perform specific
types of searches on your collection. When you run a
Atlas Search performs a full-text search of the indexed fields for data that
matches your query.
- Enter the term to search in the collection.
View your Atlas Search query syntax, which you can then run in your MongoDB Shell,
mongosh, or export to a programming language.
You must create Atlas Search indexes on the collection for all fields that you want to search.
Atlas Search provides options that allow you to modify the score of returned documents and to display the search terms in their original context.
Use the explain method to return detailed information about your queries.