如何跨集合运行 Atlas 搜索查询
以下教程将引导您完成跨多个集合进行查询的步骤:
如何使用物化视图运行 Atlas Search 查询教程演示如何使用按需物化视图和 Atlas App Services 定时触发器对多个集合进行索引和查询。
如何使用 Atlas Search
$search
查询运行$lookup
教程演示如何通过首先使用$lookup
连接同一数据库中的集合,然后使用$search
在子管道中运行搜索,以执行跨集合搜索。如何使用
$unionWith
Atlas Search$search
查询运行 教程演示了如何在Atlas Search$search
$unionWith
聚合阶段子管道中使用 多个集合。