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

Complete explain response for search cursor stage

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Execution
    • Fully Compatible
    • QE 2023-10-16, QE 2023-10-30, QE 2023-11-13

      Need to consider how to handle incorporating the mongot cursor's explain response in the search cursor stage's explain.

      https://github.com/10gen/mongot/blob/master/docs/protocol/search.md#explain-information

      {
        explainVersion: '1',
        stages: [
          {
            '$_internalSearchMongotRemote': {
                mongotQuery: { query: 'cakes', path: 'title' },
                explain: {
                   path: 'writer',
                   type: 'xxx',
                   analyzer: 'lucence',
                   args: 'xxx",
                   stats: {
                      context: ...
                      match: ...
                      score: ... 
                   }         
               }
            },
            nReturned: Long("0"),
            executionTimeMillisEstimate: Long("1")
          },
          {
            '$_internalSearchIdLookup': {},
            nReturned: Long("0"),
            executionTimeMillisEstimate: Long("1")
          }
        ],
      ...
      } 

       

       _explainResponse = mongot_cursor::getExplainResponse(_expCtx, _searchQuery, _taskExecutor.get());

            Assignee:
            zixuan.zhuang@mongodb.com Zixuan Zhuang
            Reporter:
            prithwish.dan@mongodb.com Prithwish Dan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: