- 
    Type:Task 
- 
    Resolution: Fixed
- 
    Priority:Major - P3 
- 
    Affects Version/s: None
- 
    Component/s: None
- 
    None
- 
        Query Integration
- 
        Fully Compatible
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- Move SearchSharedState off ExpressionContext into DocumentSourceInternalSearchIdLookup header, and it might be worth considering renaming the struct since "SearchSharedState" is pretty vague. What about "SearchIdLookupMetrics"?
- IdLookup can construct its own instance of the struct, and then DocumentSourceInternalSearchMongotRemote needs a pointer to the struct. This Is the function where we "desugar" a $search stage into the separate $internalSearchMongotRemote and $_internalSearchIdLookup stages, and we'll need to pass the pointer from idLookup to mongotRemote. If we'reĀ _not using an idLookup stage (if the query is "storedSource"), then mongot remote can have a nullptr.
- Will need to move the test from the previous ticket form expression context to idLookup, but the integrity of the test should be able to remain.
- is depended on by
- 
                    SERVER-86736 Compute idLookup success rate to cap mongot cursor batchSize on getMores for classic engine -         
- Closed
 
-         
- is related to
- 
                    SERVER-90774 Add idLookup success rate computation to SharedSearchState -         
- Closed
 
-