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

implement $queryStats for $search and $searchMeta queries

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

      $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@mongodb.com Maddie Zechar
            Reporter:
            davis.haupt@mongodb.com Davis Haupt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: