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

Unit test an MQL algorithm for reciprocal rank fusion

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration

      This ticket tracks the work to make a helper function to perform rank fusion. Something like the following, but tested out:

      
      

      auto singleRRFTerm(const std::vector<Value>& ks) {
      using D = Document;
      return D {
      {
      "$divide"_sd, std::vector {
      1, D {
      {
      "$add"_sd, std::vector<ImplicitValue> {
      "$rank", D {
      {
      "$arrayElemAt"_sd, std::vector

      { ks, "$pipeline_idx" }

      }
      }
      }
      }
      }
      }
      }
      }
      }

            Assignee:
            Unassigned Unassigned
            Reporter:
            joseph.kanaan@mongodb.com Joe Kanaan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: