Perform a search over multiple collections
Right now you can only search over one collection. I'd like to be able to search over several collections at the same time.
We are looking to get feedback from our customers about this feature to understand your use cases and your needs. If you would like to chat with the product managers for Atlas Search about your cross-collection use case, please let us know.
We have planned the first version of this feature for next quarter. More details coming soon. :)
Starting in MongoDB 4.2, you can search over multiple collections with materialized views. For some use cases that is not idea, but for many it should work just fine. If it won't work in your case, please let us know why it would not.
Tim Frietas commented
i want to use searchBeta operator on dbref objects attribute how i can give instructions to analyzer to access fields from reference object and do indexing
For example, assuming the following two collections:
I want to be able to run a query like the following: