[SERVER-18491] Add support for $or query to be answered by partial index Created: 14/May/15  Updated: 02/Aug/18  Resolved: 04/Jun/15

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 3.1.4

Type: Task Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

Every clause of the OR-query must match a subset of the documents matched by the partial index filter. 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, $or: [{x: 1}, {x: 2}]})
find({a: 1, $or: [{x: {$gt: 10}}, {x: {$lt: 5}}]})



 Comments   
Comment by Githook User [ 04/Jun/15 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: SERVER-18491 Add support for answering $or queries with a partial index.
Branch: master
https://github.com/mongodb/mongo/commit/ce2b1d11d42de93f7b375f7e6c41fb709f66e969

Generated at Thu Feb 08 03:47:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.