[DOCS-6854] partial index supported expression types Created: 19/Dec/15  Updated: 30/Oct/23  Resolved: 01/Nov/22

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Minor - P4
Reporter: Jake Angerman Assignee: Kay Kim (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 1 year, 14 weeks, 1 day ago
Epic Link: DOCSP-1769

 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.



 Comments   
Comment by Education Bot [ 01/Nov/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Generated at Thu Feb 08 07:53:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.