-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
Ranking-style functions are currently only allowed with single-field sortBy specs, since the implementation re-uses existing accumulator machinery under the hood which operates over single values at a time.
One potential workaround is to prepend an $addFields stage that places the compound set of fields into their own sub-object, then applying the window function rank on that new object.
- is depended on by
-
SERVER-8065 Add a way to determine a document's rank after a $sort
- Closed
- is duplicated by
-
SERVER-8065 Add a way to determine a document's rank after a $sort
- Closed