$search (aggregation)
$search
aggregation pipeline stage performs a full-text search of the field or fields in an Atlas collection. 聚合管道阶段对Atlas集合中的一个或多个字段执行全文搜索。The fields must be covered by an Atlas Search index. See:这些字段必须包含在Atlas Search索引中。请参阅:
Index Definitions索引定义to learn more about creating and managing Atlas Search indexes.了解有关创建和管理Atlas Search索引的更多信息。Atlas Search Aggregation Pipeline StagesAtlas搜索聚合管道阶段to learn more about the以了解有关$search
pipeline stage syntax and usage.$search
pipeline stage语法和用法的更多信息。$search Operators$search
运算符to learn more about the以了解有关$search
aggregation pipeline stage operators.$search
聚合管道阶段运算符的更多信息。
Important
The $search
aggregation pipeline stage is only available for collections hosted on MongoDB Atlas cluster tiers running MongoDB version 4.2 or later. $search
聚合管道阶段仅适用于运行MongoDB 4.2或更高版本的MongoDB Atlas集群层上托管的集合。To learn more, see Atlas Search.要了解更多信息,请参阅Atlas Search。