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

Reverse regex functionality for queries

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • Querying
    • None
    • Query

    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

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

              Dates

                Created:
                Updated:
                Resolved: