If mongoS changes the projection on a query, then the filters aren't applied to the query at all (mongoD runs the normal ranking process).
The expected behavior would be either:
- Apply the filters as mongoD without the modified project (easier for users to understand)
- Apply the filters to query as given to mongoD from mongoS
- duplicates
-
SERVER-13008 Encoding of projection for query plan cache should be type-insensitive
- Closed