Elasticsearch pinned query MongoDB equivalent exists?

Hi @Mateusz_Spiewak ,

First maybe you can use 2 quaries in a $unionWith aggregation, first for the featured movies and second for the other search:

Now to get items by an array order you can see an aggregation I helped with here :

The second union part sort by title in its pipeline.

Let me know if that makes sense.

Thanks
Pavel