Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-13902

Reverse regex functionality for queries

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Querying
    • Labels:
      None

      Description

      The $regex operator allows to search documents having a field which match a given regular expresion passed in the query. However, it would be interesting to have also the opossite: search documents passing a text in the query which is evaluated for matching to a field in the collection storing a regular expresión.

      I wonder if this feature/improvement is already in MongoDB roadmap as it seems it would be useful for several use cases. See for example:

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-query Backlog - Query Team (Inactive)
              Reporter:
              fgalan@gmail.com Fermín Galán Márquez
              Participants:
              Votes:
              22 Vote for this issue
              Watchers:
              20 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: