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

Add support for $or query to be answered by partial index

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.4
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      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}}]})
      

            Assignee:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: