[DOCS-3775] Documentation for regex under an $in is misleading Created: 17/Jul/14  Updated: 19/Aug/14  Resolved: 19/Aug/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.10

Type: Bug Priority: Major - P3
Reporter: David Storch Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-14595 Allow {$regex: /pattern/} syntax insi... Backlog
Participants:
Days since reply: 9 years, 26 weeks, 1 day ago

 Description   

Refers to server ticket SERVER-14595 and this page:

http://docs.mongodb.org/manual/reference/operator/query/in/#use-the-in-operator-with-a-regular-expression

The documentation makes it sound like either the {$regex: /pattern/} syntax or the raw /pattern/ syntax for regular expressions is allowed inside an $in. However, to my knowledge only the raw /pattern/ syntax has ever been allowed. Versions of 2.6 through 2.6.3 will reject $regex inside an $in explicitly. The docs should state explicitly that only the /pattern/ syntax is currently allowed.



 Comments   
Comment by Githook User [ 19/Aug/14 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-3775 in and regular expressions
Branch: v2.2
https://github.com/mongodb/docs/commit/224a7a5318eb6cc50b4bd3f73345c1caa7e1e553

Comment by Githook User [ 19/Aug/14 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-3775 in and regular expressions
Branch: v2.4
https://github.com/mongodb/docs/commit/bde005ec82eb6ae04f0c27e0e7dbb372c6c9a407

Comment by Githook User [ 19/Aug/14 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-3775 in and regular expressions
Branch: master
https://github.com/mongodb/docs/commit/1a812785951b96cc99422a8ed3b8f9ed8674d23a

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