[SERVER-73203] Extend $_internalSearchMongotRemote to accept a custom sort spec Created: 23/Jan/23 Updated: 03/Mar/23 Resolved: 03/Mar/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Nicholas Zolnierz | Assignee: | Ben Shteinfeld |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Query Optimization
|
||||||||
| Sprint: | QO 2023-02-06, QO 2023-02-20, QO 2023-03-06, QO 2023-03-20 | ||||||||
| Participants: | |||||||||
| Description |
|
This task includes updating the constructor but also populating the $sortKey to be used by mongos (or a merging node) for $search queries which involve a custom sort. Discussed leveraging the existing Params to indicate the desired sort. |
| Comments |
| Comment by Ben Shteinfeld [ 03/Mar/23 ] |
|
The work done in |
| Comment by Nicholas Zolnierz [ 23/Jan/23 ] |
|
Without the mongos merging support, this ticket cannot fully test the sharded collection behavior but can still test against a standalone. Will need to double check whether planShardedSearch is called in that case. |