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

db.grep() shell utility to search all collections

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Component/s: Shell
    • Labels:
      None

      Description

      Default behavior:
      db.grep("search term")
      OR
      db.grep(ObjectId("56e69b8abd177faa0aab0bfd"))
      Goes through all indexed fields in all collections and lists all collections where matches exist

      Quick way to test:
      https://gist.github.com/blowhacker/c930142e967d3a123519
      copy the contents of this gist into a mongo shell and try db.grep( <something to grep>)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: