Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-70319

[FLE] Equality queries on range indexes inside an $and error

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • QO 2022-10-31

    Description

      The query below raises an error that equality queries should only be run with equality indexes. However, we want to be able to run equality queries on range indexes as well. This query can be found in the enterprise modules under fle2/query/find_range.js

      {$and: [
      {salary: {$gt: Number(10020)}},
      {savings: {$eq: NumberLong(1230500)}}
      ]}, 

      Attachments

        Activity

          People

            davis.haupt@mongodb.com Davis Haupt (Inactive)
            gil.alon@mongodb.com Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: