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

Improve feedback for misspelled $rankFusion pipelines in weights object

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

      Right now when a pipeline is misspelled in the 'combination.weights' argument in the $rankFusion stage, the only feedback we get is that a specified pipeline is missing a weight.

      Firstly, we could give some improved feedback here, as the current logic is not distinguishing between a pipeline being entirely absent, and being misspelled. Theres a couple possible improved suggestions we could give here:

      • Print out the possible valid pipeline options that haven't been specified
      • Do some simple text analysis between the provided nonexistent pipeline, and the possible remaining options (such as counting common in-order characters), and make a suggestion of what pipeline they meant  

       

      Secondly, per SERVER-99674, well be changing the behavior to allow not all pipelines to be specified, so well need to change the feedback regardless.

            Assignee:
            joseph.shalabi@mongodb.com Joe Shalabi
            Reporter:
            joseph.shalabi@mongodb.com Joe Shalabi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: