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