-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
The draft in SERVER-92213 uses the trick with $group and $push to compute the rank of documents, but we believe it will be better to go with a version that uses $setWindowFields and $rank to compute the same thing, for performance reasons, and so that it doesn't error when given too much data.
You can sort by {key: {$meta: "sortKey"}}
- depends on
-
SERVER-91281 Allow $rank window function to operate without a SortKeyPattern
- In Progress
-
SERVER-92213 Implement desugaring of $rankFusion
- Closed
-
SERVER-96064 Optimize away $sort directly after $vectorSearch for single node environments
- Closed
-
SERVER-94628 Ensure we do not do a redundant $sort by search score during $rankFusion.
- Closed