Currently we desugar DSSearch into two DS when parsing $search, planShardedSearch call is also been issued at parsing time.
For SBE, we want to only see DSSearch at all time.
For legacy DS code path, we'd like only DSSearch at planning time, and desugar it before execution. For sharded env, the desugar happens at mongod. The planShardedSearch is issued only when needed instead of at parsing time.
- is depended on by
-
SERVER-78163 Push down DocumentSourceSearch into SBE
- Closed
- is related to
-
SERVER-79948 Fix test failure when searchReturnEofImmediately is true
- Closed
-
SERVER-79916 Cleanup unused members in DocumentSourceInternalSearchMongotRemote
- Closed
-
SERVER-80696 Fix How limit is calculated in $_internalSearchMongotRemote
- Closed
- related to
-
SERVER-85694 $searchMeta aggregation pipeline stage not passing correct query to mongot after PlanShardedSearch
- Closed
-
SERVER-84224 Complete TODO listed in SERVER-78159
- Closed