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

partialFilterExpression error - Index with pattern {...} already exists with different options

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.0
    • Component/s: Index Maintenance
    • None
    • ALL

      Developer can't create two same indexes with different partialExpressions, for example:
      Developer needs to create indexes with same patterns for types: 'a' and 'b', but not for 'c' and 'd'.
      But he's limited (can't use) $in and $or in partialFilterExpression. He also can't create two different indexes with partialFilterExpression:

      {type:1}

      and partialFilterExpression:

      {type:2}

            Assignee:
            kelsey.schubert@mongodb.com Kelsey Schubert
            Reporter:
            FanAs Artyom Fanasov
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: