Linuxy Adventures in a Windows World

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
Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest
Labels: database, grep, mongo, search

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2017 (1)
    • ►  April (1)
  • ▼  2016 (5)
    • ▼  September (5)
      • Be more intelligent with your `sleep`--or-- how to...
      • Kill an X application when you have multiple X ser...
      • Simple field searching with MongoDB
      • 9menu vs ratmenu vs dmenu
      • Errors running iodined server
  • ►  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.