-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
ALL
SERVER-77280 added queries during subplanning for $or that will allow plans with OR and clustered collection scans. SERVER-61259 extended these plans to work with $text nodes. However, subplanning is only entered for rooted $or queries, so queries like the one below won't use the new plans. We should add logic to use the new plans with these types of queries too.
t.find({a: 0, $or: [{_id: 2}, {$text: {$search: "foo"}}]}
- is related to
-
SERVER-61259 $or queries with text indexes fail on clustered collections
- Closed
-
SERVER-77280 $or queries only produce collscan for clustered collections
- Closed