Add ViewPolicy override to DocumentSourceInternalSearchIdLookup::LiteParsed

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Add a LiteParsed callback that appends the desugared view pipeline to its internal subpipeline. This should replace the current behavior in which DocumentSourceInternalSearchIdLookup appends the viewPipeline after its match stage. Since the LiteParsed form handles the view, the modified subpipeline can just be passed as is in IdLookup's LiteParsed to DocumentSource promotion function.

          auto getViewPolicy() const {
              return [this](const ViewInfo& viewInfo) { 
                  this->pipeline.append(viewInfo.pipeline);
                  // the 'pipeline' member variable gets manipulated and ultimately translated
                  // into DocumentSourceIdLookup::pipeline
              };
          }
      

            Assignee:
            Unassigned
            Reporter:
            Lynne Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: