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.

No comments:

Post a Comment