Run Atlas Search Queries
On this page
You can run Atlas Search $search
and $searchMeta
queries from MongoDB Compass if you created the Atlas Search index for data on the Atlas cluster. You can
also run $vectorSearch
queries from MongoDB Compass if you have an
existing Atlas Vector search index on your data in Atlas.
Steps
Run the query
Click the Aggregate button.
MongoDB Compass switches to the Aggregations tab where you can run your query.
Construct your query.
By default, MongoDB Compass selects the
$search
stage for your query. You can select the$searchMeta
stage to use in your query. If you are using avectorSearch
type index in your query, you can only use the$vectorSearch
stage in your query.Note
The Atlas Search
$search
and$searchMeta
and the Atlas Vector Search$vectorSearch
pipeline stages must be the first stage in your aggregation pipeline.Click Run to run your query.