Database Manual / Reference / Query Language / Aggregation Stages

$search (aggregation stage)(聚合阶段)

$search aggregation pipeline stage performs a full-text search of the field or fields in an Atlas collection. The fields must be covered by a MongoDB Search index.$search聚合管道阶段对Atlas集合中的一个或多个字段执行全文搜索。这些字段必须被MongoDB搜索索引覆盖。

For example, you can use $search to perform the following types of operations:例如,您可以使用$search执行以下类型的操作:

For more details, see:有关更多详细信息,请参阅: