Unit test an MQL algorithm for reciprocal rank fusion

XMLWordPrintableJSON

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

      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
              Reporter:
              Joe Kanaan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: