Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-96384

support top-level $search/$vectorSearch/$searchMeta queries on sharded views

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            maddie.zechar@mongodb.com Maddie Zechar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: