Indexing polymorphic data

Please read more in our dedicated article on indexing polymorphic data. This article can be found here.

Searching across multiple collections

Another great application of Multi-Map indexes is smart-search. Imagine that you want to search for products, companies, or employees by their name. In order to do it, you need to define the following index: