MongoDB.local SF, Jan 15: See the speaker lineup & ship your AI vision faster. Use WEB50 to save 50%
Find out more >
Docs Menu
Docs Home
/ /
Aggregation Pipeline Stages

$searchMeta (aggregation)

searchMeta returns different types of metadata result documents for Atlas Search queries on the field or fields in an Atlas collection. The fields must be covered by an Atlas Search index. See:

  • Index Definitions to learn more about creating and managing Atlas Search indexes.

  • Atlas Search Aggregation Pipeline Stages to learn more about the $searchMeta pipeline stage syntax, usage, and results.

Important

The $searchMeta aggregation pipeline stage is only available for collections hosted on MongoDB Atlas. To learn more, see Atlas Search.

Back

$search