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

Allow $regex to be specified in partial index document filter

    XMLWordPrintableJSON

Details

    • Task
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • Index Maintenance, Querying
    • None
    • Query Optimization

    Description

      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. 
      

      Attachments

        Issue Links

          Activity

            People

              backlog-query-optimization Backlog - Query Optimization
              kateryna.kamenieva@mongodb.com Katya Kamenieva
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: