-
Type: Task
-
Resolution: Won't Fix
-
Priority: Minor - P4
-
Affects Version/s: None
-
Labels:None
Partial Index creation does not support regular expressions. For example, the following command will fail:
> db.mycollection.createIndex({'myarray.category':1}, {partialFilterExpression: {'myarray.category': {$regex: /^FOO/} }}) { "ok": 0, "errmsg": "unsupported expression in partial index: myarray.category regex /^FOO/\n", "code": 67 }
It might good to note this (and/or list the supported expression types) in the Restrictions section.