implement $queryStats for $search and $searchMeta queries

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2023-09-18
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      $search and $searchMeta queries should be serialized as a constant. This is already the case for $search, where 

       

      { 
          $search: {
              query: "cakes"
              path: "title"
          }
      }

      results in the respective key outputted from $queryStats:

       

      { 
          $search: "?obj"
      }

      This is not the case currently for $searchMeta and this ticket will implement correct serialization for $searchMeta for purposes of queryStats. 

       

      This ticket should also address adding test coverage for $search and $searchMeta queries in an environment where $queryStats is enabled.

            Assignee:
            Maddie Zechar
            Reporter:
            Davis Haupt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: