[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:
Duplicate
duplicates SERVER-73204 Update mongos planning for $search pi... Closed
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 SERVER-73204 address this task.

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.

Generated at Thu Feb 08 06:23:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.