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

Add support for 'input.normalization' none/sigmoid options to $scoreFusion

    • 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

      Options are 'none', 'sigmoid', and 'minMaxScalar'. 

      Implement 'sigmoid' in this ticket (priority). This should be pretty simple - when we add the $addFields stage at the end of each input pipeline, we can optionally wrap the score input in a $sigmoid expression here.]

      So the $addFields stage will go from:

      {$addFields:
          {<input_pipeline_name>_score:
              {$multiply:
                 [{"$score"}, <pipeline_weight>]
              }
          }
      }

      to:

      {$addFields:
            {<input_pipeline_name>_score:
                {$multiply:
                    [{$sigmoid: "$score"}, <pipeline_weight>]
                }
            }
      }

      Follow up ticket SERVER-100211 will focus on 'minMaxScalar'.

       

            Assignee:
            adithi.raghavan@mongodb.com Adithi Raghavan
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: