Linuxy Adventures in a Windows World

Showing posts with label grep. Show all posts
Showing posts with label grep. Show all posts

Saturday, September 3, 2016

Simple field searching with MongoDB

Tons of articles detailing full-text search. But that's not what we want.

For us UNIX folks, we just want to "grep" a field:

db.collection.find( {path: /serverpush.html/ } )

The slashes are essentially wildcards.
Posted by Unknown at 8:36 AM No comments:
Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest
Labels: database, grep, mongo, search
Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2017 (1)
    • ▼  April (1)
      • Google Cloud Functions always timeout
  • ►  2016 (5)
    • ►  September (5)
  • ►  2015 (3)
    • ►  November (1)
    • ►  January (2)
  • ►  2014 (4)
    • ►  April (4)
  • ►  2013 (10)
    • ►  November (1)
    • ►  October (1)
    • ►  September (2)
    • ►  April (3)
    • ►  March (2)
    • ►  January (1)
  • ►  2012 (4)
    • ►  December (1)
    • ►  September (2)
    • ►  August (1)
  • ►  2010 (4)
    • ►  November (1)
    • ►  October (3)

About Me

Unknown
View my complete profile
Watermark theme. Powered by Blogger.