Create a skeleton of DocumentSourceScoreFusion stage that registers $scoreFusion as an acceptable aggregation stage.
Since this document source will act as syntactic sugar (like DocumentSourceCount, for example), it only needs to implement a "createFromBson()" method, but doesn't need to implement the DocumentSource interface.
Edit and expand "search_hybrid_scoring_feature_flag.js" to confirm that the aggregation stage is not allowed (and will return an error) when the flag is off. Use "query_stats_feature_flag.js` as an example.
This is essentially a duplicate task of SERVER-91907, so that patch can be used for reference.
- is depended on by
-
SERVER-94024 Implement basic parsing for $scoreFusion
- Closed