Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-3775

Documentation for regex under an $in is misleading

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • v1.3.10
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      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.

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              9 years, 37 weeks, 1 day ago