-
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-100868 move replication logic from search.js to server
-
- Backlog
-
-
SERVER-93637 support create/update/drop search index commands on sharded views
-
- Closed
-
- is depended on by
-
SERVER-100566 for sharded queries, do not place the view nss and view pipeline on the expCtx in createFromBson
-
- Open
-