My best bet is that we can add in a $setWindowFields stage expansion at parse time, so that we don't have to duplicate any execution logic.
Edit on 4/24/25 -
This will require some reworking to the current logic in DocumentSourceScore - currently $score just translates directly to a $setMetadata stage. However, as a result of minMaxScaler normalization, $score will need to translate into a pipeline of $addFields, $setWindowFields, and $setMetadata.
- depends on
-
SERVER-94599 Add $minMaxScalar window function for removable window implementations
-
- Closed
-
-
SERVER-95229 Support non-removable window implementations for $minMaxScalar window function
-
- Closed
-
-
SERVER-94663 Add support for 'input.normalization' none/sigmoid options to $scoreFusion
-
- Closed
-
- is depended on by
-
SERVER-94670 Implement 'scoreDetails' for $score stage
-
- In Code Review
-