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

Allow $regex to be specified in partial index document filter

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Index Maintenance, Querying
    • Labels:
      None
    • Query Optimization

      Users should be able to specify $regex predicate operators as part of a partial index document filter.

      db.collection.ensureIndex({a: 1}, {partialFilterExpression: {b: /bar/}});
      db.collection.find({a: 1, b: "foobar"}); // Should be able to use the above index. 
      

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            kateryna.kamenieva@mongodb.com Katya Kamenieva
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: