I have created three different index on different collection in a database on MongoDB server side. Below are the one’s
With aggregation pipeline builder I am able to run only one search index.
How can I combine and run multiple search indexes of different collection in a same database and come up with single result set?
MaBeuLux88
(Maxime Beugnet)
#2
Hi @Basavaraj_Km and welcome in the MongoDB Community
!
$search must be the first stage in your pipeline and can’t be used in a $facet pipeline stage so I think this isn’t possible at the moment.
But maybe it’s possible to change the definition of your index so it does what you want with just one index? @Karen_Huaulme is this possible?
Cheers,
Maxime.