The 3.1.1 release of partial indexes supports only provides support for simple user queries. It should be possible for more complex user queries to be answered by a partial index.
For example, an index with key pattern {a: 1} and partial index document filter {x: {$exists: true}} should be able to answer all of the following queries:
find({a: 1, x: {$in: [1, 2]}}) find({a: 1, $or: [{x: 1}, {x: 2}]}) find({a: 1, x: /hello world/}) find({a: 1, x: {$type: 1}}) find({a: 1, x: {$geoWithin: ...}}) find({a: 1, x: {$elemMatch: {y: 1, z: 1}}})
- is duplicated by
-
SERVER-18327 Coverity analysis defect 72086: Unchecked dynamic_cast
- Closed
- related to
-
SERVER-18308 Partial indexes should support point queries over single field ranges
- Closed
-
SERVER-17853 Allow more complex expressions to be specified in partial index document filter
- Backlog