Add ViewPolicy override to LiteParsedInternalSearchMongotRemote

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

      When running on a view, LiteParsedInternalSearchMongotRemote will provide a callback that sets viewName in the mongot remote spec.

          // LiteParsedInternalSearchMongotRemote:
          auto getViewPolicy() const {
              return [this](const ViewInfo& viewInfo) { 
                  this->spec["viewName"_sd] = viewInfo.name;
                  // the 'spec' member variable gets manipulated and ultimately translated
                  // into DocumentSourceMongotRemote::mongotSpec
              };
          }
      

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

              Created:
              Updated: