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

Add "description" and "weight" to $rankFusion scoreDetails

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      An example scoreDetails output for $rankFusion right now looks like:

      "details" : {
          "value" : 0.030621785881252923,
          "details" : {
              "search" : {
                  "rank" : 2,
                  "value" : 0.7273834347724915,
                  "details" : "Not Calculated"
              },
              "vector" : {
                  "rank" : 9,
                  "value" : 0.7793490886688232,
                  "details" : "Not Calculated"
              }
          }
      }

      It's not clear, however, how the 0.030621... was computed (via the RRF formula). We should add a "description" field that describes how that value is computed. We can use the $search.scoreDetails.description field (https://www.mongodb.com/docs/atlas/atlas-search/score/get-details/) as an example. 

       

      We'll also add "weight" under each input pipeline to show how the weight plays a role too.

            Assignee:
            will.buerger@mongodb.com Will Buerger
            Reporter:
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None