Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-504

Add support for $in, $eq for range indexes for explicit encryption

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Not Needed

      Range indexes should support queries that use the $in and $eq operator in explicit encryption. Trying to encrypt the query below with explicit encryption on an encrypted index of type double raises an error.

      "{ '$and': [{ 'encryptedDoublePrecision': { '$in': [{ '$numberDouble': '0.0' }, { '$numberDouble': '10.0' }] } } ] });"

      The error message raised was: 

       unsupported operator: $in: { "$and" : [ { "encryptedDoublePrecision" : { "$in" : [ { "$numberDouble" : "0.0" }, { "$numberDouble" : "10.0" } ] } } ] }

      The same error is raised for the $eq operator.

            Assignee:
            Unassigned Unassigned
            Reporter:
            gil.alon@mongodb.com Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: