db.grep() shell utility to search all collections

XMLWordPrintableJSON

    • Server Tooling & Methods
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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>)

              Assignee:
              Backlog - Server Tooling and Methods (STM) (Inactive)
              Reporter:
              navin kumar
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: