- 
    Type:Improvement 
- 
    Resolution: Unresolved
- 
    Priority:Major - P3 
- 
    None
- 
    Affects Version/s: None
- 
    Component/s: None
- 
        Query Execution
- 
        (copied to CRM)
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
When issuing explain() on aggregate commands with $lookup in it, 'indexesUsed' field is populated with the index that was used as part of the $lookup stage. However, this doesn't happen when $lookup is run on the sharded collection.
This makes it hard to debug and understand which index was used, for both users and us.
- is related to
- 
                    SERVER-88561 Expand explain command output for $graphLookup stage -         
- Backlog
 
-         
- 
                    SERVER-22622 Improve $lookup explain to indicate query plan on the "from" collection -         
- Needs Scheduling
 
-         
- related to
- 
                    SERVER-105668 Avoid reporting 'indexesUsed' for $lookup in sharded collections -         
- Backlog
 
-         
- 
                    SERVER-1812 Add the ability to get query results and the query plan in one call -         
- Backlog
 
-