Database Manual / Reference / Query Language / Aggregation Stages

$searchMeta (aggregation stage)

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

Important

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