• Type: Sub-task
    • Resolution: Unresolved
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      DocumentSourceInternalResultsAndMetadata is a new internal aggr stage that wraps an source (e.g. $search) which emits two separate streams: document results and metadata. At pipeline compilation time it dissolves into an Exchange with
        per-stream consumers. 

       

      This jira adds the skeleton registration and plumbing for the stage so subsequent tickets can build on a stable base:

      •  document_source_internal_results_and_metadata.idl : IDL spec with DocumentSourceResultsAndMetadataSpec and MetadataBindSpec.
      • document_source_internal_results_and_metadata.h : class declaration, Metadata struct, create() / createFromBson() factory, accessors.
      • document_source_internal_results_and_metadata.cpp : registration macros, constructor, create(), createFromBson(); constraints() and serialize() are MONGO_UNIMPLEMENTED_TASSERT stubs

            Assignee:
            Aditya Deshpande
            Reporter:
            Aditya Deshpande
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: