-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Integration
In a sharded context, the primary shards executing the query and the mongos that resolved the view don't share an expression context. For this reason, mongos will need to serialize the view name and pipeline during query serialization. More specifically, DocumentSourceSearch::serialize() will include the viewName and the _resolvedNamespace pipeline saved to its expression context. During desugaring on the primary shards, DocumentSourceSearch will place the view name on DocumentSourceInternalSearchIDLookup and save the view pipeline to _resolvedNamespaces on its expression context. In this way, the view name and pipeline persist from view resolution on mongos to query execution on the shards.
- depends on
-
SERVER-93637 support all search index commands on sharded views
- In Code Review