[SERVER-18457] Expand supported query operators with {$exists: true} partial index filter Created: 13/May/15  Updated: 02/Aug/18  Resolved: 16/May/15

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

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   

The following query operators all require that the field they operate on be present in the document, and are thus compatible with {$exists: true}:

  • $exists
  • $type
  • $mod
  • $regex
  • $geoIntersects
  • $geoWithin
  • $elemMatch
  • $size

The following query operators allow using null to match documents where the field is omitted from the document, and are only compatible with {$exists: true} if the value is non-null:

  • $eq
  • $gt
  • $gte
  • $lt
  • $lte
  • $in

The following query operators allow using non-null values to match documents where the field is omitted from the document, and are only compatible with {$exists: true} if the value is null:

  • $ne
  • $nin


 Comments   
Comment by Githook User [ 16/May/15 ]

Author:

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

Message: SERVER-18457 Support more query operators with {$exists: true} filter.
Branch: master
https://github.com/mongodb/mongo/commit/727c1dc8ce2df4e44516e1527d917294f7c45558

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