$searchMeta (aggregation)

searchMeta returns different types of metadata result documents for Atlas Search queries on the field or fields in an Atlas collection. 返回不同类型的元数据结果文档,用于对Atlas集合中的一个或多个字段进行Atlas搜索查询。The fields must be covered by an Atlas Search index. 这些字段必须包含在Atlas搜索索引中。See:

Important重要

The $searchMeta aggregation pipeline stage is only available for collections hosted on MongoDB Atlas cluster tiers running MongoDB version 4.4.9 or later. $searchMeta聚合管道阶段仅适用于运行MongoDB 4.4.9或更高版本的MongoDB Atlas集群层上托管的集合。To learn more, see Atlas Search.要了解更多信息,请参阅Atlas搜索

←  $search (aggregation)$set (aggregation) →