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'.
- depends on
-
SERVER-94022 Implement desugaring of $scoreFusion
-
- Closed
-
- is depended on by
-
SERVER-94600 Add 'minMaxScaler' normalization option to $score stage
-
- Open
-
-
SERVER-100211 Add support for 'input.normalization' minMaxScaler option to $scoreFusion
-
- Open
-
- related to
-
SERVER-100211 Add support for 'input.normalization' minMaxScaler option to $scoreFusion
-
- Open
-