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

XMLWordPrintableJSON

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

      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
            Reporter:
            Artyom Fanasov
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: