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

Reverse regex functionality for queries

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Query

      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:

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

              Created:
              Updated:
              Resolved: