Details
-
Improvement
-
Resolution: Won't Fix
-
Minor - P4
-
None
-
None
Description
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.