SERVER-133321ClosedFixed
$lookup on a view definition with extension $search stage binds the view into its own $_internalSearchIdLookup w/ different behavior on topology
h1. Summary When \{{$lookup.from}} is a view whose pipeline desugars to a mongot-style source stage plus \{{$_internalSearchIdLookup}}, the foreign-view binding step binds the view's *own* pipeline onto that idLookup stage. On an unsharded deployment idLookup then prepends \{{$match: <documentKey>}} to the bound view pipeline, displacing the \{{PositionRequirement::kFirst}} source stage, and the query fails with: On a sharded cluster the same query succeeds. \{{$unionWith}} and \{{$gra