Does MongoDB Atlas Search support searches on multiple collections?

I have a requirement to be able to search various collections together with one query, is this possible with MongoDB Atlas Search?

1 Like

@Steven_Romero1 Have you tried using materialized views? It may work for your use case.

Hello Steven, I’m facing the same problem. Did you find a solution for this case within Atlas Search?
If not, how did you solve it?

Thanks!

In MongoDB 6.0.0, we introduced native cross-collection search without the need to maintain materialized views.

@Ignacio_Montero here you will find tutorials for using $unionWith, $lookup, and materialized views referenced above. The other two options require less work.

1 Like